View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001630 | JEDI VCL | 00 JVCL Components | public | 2004-04-12 12:52 | 2004-04-15 01:18 |
Reporter | USchuster | Assigned To | AHUser | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0001630: edit controls CUT doesn't work | ||||
Description | In 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 | ||||
Tags | No tags attached. | ||||
|
Fixed in CVS Also fixed: Ctrl+Z with "ClipboardControl-[caUndo]" |
|
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 |
|
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. |
|
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 |
|
The only problem is that the Clipboard functions are procedures with no paramter and not functions. |
|
You mean the clx procedures, yeah, that is too bad. Okay, then it is something to keep in mind :) |
|
I add a comment to the JvExControls.pas code |
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 |