View Issue Details

IDProjectCategoryView StatusLast Update
0004135JEDI VCL00 JVCL Componentspublic2008-07-23 07:26
Reporteraml1005Assigned Toremkobonte 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionwon't fix 
Product VersionDaily / GIT 
Target VersionFixed in Version 
Summary0004135: TJvRichEdit ClipboardCommands don't work
DescriptionSetting ClipboardCommands has no effect (i.e. can still paste with caPaste=false).

I think this is because WndProc is not sent WM_Paste in rich edit controls. Instead has to be implemented via callback QueryAcceptData.
TagsNo tags attached.

Activities

obones

2007-06-20 02:21

administrator   ~0013483

Can you provide the zipped sources of a sample application showing this, along with a suggested implementation for QueryAcceptData?

aml1005

2007-06-20 15:11

reporter   ~0013504

I don't have a sample but I think it will happen with any rich edit control in any application. Sorry I don't have time to investigate in detail at the moment.

I think you just do "if xxxx then Result:=S_FALSE" in QueryAcceptData. (Would also be very nice to have an OnQueryAccept event to easily control this in more detail - e.g. to allow pasting only certain formats, etc)

Some QueryAcceptData examples at e.g.
http://groups.google.co.uk/group/microsoft.public.vc.mfc/browse_thread/thread/f47a747d830d31a6/788e923cfb48cd98?lnk=st&q=QueryAcceptData+allow+paste&rnum=1&hl=en#788e923cfb48cd98

obones

2007-10-12 07:25

administrator   ~0013927

If it happens with any RichEdit, then it's not fixable.

aml1005

2007-10-12 11:24

reporter   ~0013952

Sorry, I meant any TJvRichEdit control in any Delphi application - it is not a generic windows richedit bug. I think it is fixable - just need to change the way it is implemented, as per my suggestion of 06-20-07.
Thanks.

obones

2008-07-23 07:25

administrator   ~0014444

We needed a sample application

Issue History

Date Modified Username Field Change
2007-05-18 14:31 aml1005 New Issue
2007-06-20 02:21 obones Note Added: 0013483
2007-06-20 02:21 obones Status new => feedback
2007-06-20 15:11 aml1005 Note Added: 0013504
2007-08-08 16:40 remkobonte Status feedback => assigned
2007-08-08 16:40 remkobonte Assigned To => remkobonte
2007-10-12 07:25 obones Status assigned => resolved
2007-10-12 07:25 obones Resolution open => not fixable
2007-10-12 07:25 obones Note Added: 0013927
2007-10-12 11:24 aml1005 Status resolved => feedback
2007-10-12 11:24 aml1005 Resolution not fixable => reopened
2007-10-12 11:24 aml1005 Note Added: 0013952
2008-07-23 07:25 obones Status feedback => resolved
2008-07-23 07:25 obones Resolution reopened => won't fix
2008-07-23 07:25 obones Note Added: 0014444