View Issue Details

IDProjectCategoryView StatusLast Update
0001630JEDI VCL00 JVCL Componentspublic2004-04-15 01:18
ReporterUSchusterAssigned ToAHUser 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0001630: edit controls CUT doesn't work
DescriptionIn the edit controls Cut doesn't work.
Additional Information- recognized in TJvMemo and tested with TJvEdit as well
- Copy and Paste does work
- maybe a problem with the ExControl stuff
- did work in JVCL 2.1
TagsNo tags attached.

Activities

AHUser

2004-04-12 13:48

developer   ~0003819

Fixed in CVS
Also fixed: Ctrl+Z with "ClipboardControl-[caUndo]"

remkobonte

2004-04-12 14:03

developer   ~0003820

Last edited: 2004-04-12 14:04

Should the controls not return the number of characters copied on a WM_COPY message instead of returning 1/0?

edited on: 04-12-04 14:04

AHUser

2004-04-12 15:17

developer   ~0003822

Quote from the PSDK
-------------------------------------
Return Value

This message does not return a value.
-------------------------------------

And this was the reason why I had not cared about the return value.

remkobonte

2004-04-12 15:53

developer   ~0003825

Last edited: 2004-04-12 15:54

Yeah, but documentation is probably out of sync with the code:

Drop a button and edit on a form and put the following in the button onclick event handler:

ShowMessage(IntToStr(SendMessage(Edit1.Handle, WM_COPY, 0, 0)));

or

ShowMessage(IntToStr(SendMessage(Edit1.Handle, WM_CUT, 0, 0)));

and select some random text in the edit and click the button.

(The default WM_CUT handler probably checks whether WM_COPY returns 0 or something different, thus your code probably works in this case. But maybe it is a better way to always return the result value of the default handler, because this case shows that you can't rely on documentation)

edited on: 04-12-04 15:54

AHUser

2004-04-13 00:53

developer   ~0003826

The only problem is that the Clipboard functions are procedures with no paramter and not functions.

remkobonte

2004-04-14 10:12

developer   ~0003853

You mean the clx procedures, yeah, that is too bad. Okay, then it is something to keep in mind :)

AHUser

2004-04-15 01:18

developer   ~0003869

I add a comment to the JvExControls.pas code

Issue History

Date Modified Username Field Change
2004-04-12 12:52 USchuster New Issue
2004-04-12 13:38 AHUser Status new => assigned
2004-04-12 13:38 AHUser Assigned To => AHUser
2004-04-12 13:48 AHUser Status assigned => resolved
2004-04-12 13:48 AHUser Resolution open => fixed
2004-04-12 13:48 AHUser Note Added: 0003819
2004-04-12 14:03 remkobonte Status resolved => feedback
2004-04-12 14:03 remkobonte Resolution fixed => reopened
2004-04-12 14:03 remkobonte Note Added: 0003820
2004-04-12 14:04 remkobonte Note Edited: 0003820
2004-04-12 15:17 AHUser Note Added: 0003822
2004-04-12 15:53 remkobonte Note Added: 0003825
2004-04-12 15:54 remkobonte Note Edited: 0003825
2004-04-13 00:53 AHUser Note Added: 0003826
2004-04-14 10:12 remkobonte Note Added: 0003853
2004-04-15 01:18 AHUser Status feedback => resolved
2004-04-15 01:18 AHUser Resolution reopened => fixed
2004-04-15 01:18 AHUser Note Added: 0003869