Get - Cut/Paste/Delete problem

Post Reply
Randal
Posts: 250
Joined: Mon Oct 24, 2005 8:04 pm

Get - Cut/Paste/Delete problem

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
Randal
Posts: 250
Joined: Mon Oct 24, 2005 8:04 pm

Post by Randal »

Thanks!
Randal
Post Reply