Page 1 of 1

Get - Cut/Paste/Delete problem

Posted: Thu Sep 14, 2006 1:48 pm
by Randal
All,

Last month I posted a problem using the copy/cut/paste menu when right clicking on a get. This problem was fixed but we have a similar problem when using Delete.

If you double click on a get to highlight the text, right click, and select Delete the contents of the get is deleted. However, when you tab or click out of the get the Deleted text is put back in the get!

Thanks,
Randal Ferguson

Posted: Fri Sep 15, 2006 7:54 am
by Antonio Linares
Randal,

Please add these changes to Class TGet:

Code: Select all

#define WM_CLEAR           771
...
      case nMsg == WM_PASTE
           ...

      case nMsg == WM_CLEAR
           CallWindowProc( ::nOldProc, ::hWnd, WM_CLEAR, 0, 0 )
           ::oGet:buffer = Space( Len( ::oGet:buffer ) )
           ::SetPos( 1 )
           ::oGet:Assign()
           return 0

Posted: Sun Sep 17, 2006 1:35 am
by Randal
Thanks!
Randal