Can it do in TGet classes?
nageswaragunupudi wrote:Do not use SETKEY.
If you want to undo when the user presses Ctrl-Z while editing the Get, then
- Code: Select all Expand view RUN
oGet:bKeyChar := { |k,f,o| If( k == 26, ( o:cText := o:uOriginalValue, 0 ), nil ) }
dutch wrote:Dear Master,
It doesn't work. Nothing change, any editing still the same. It doesn't change back to original.nageswaragunupudi wrote:Please try
- Code: Select all Expand view RUN
oGet:Undo()
oGet:cText := oGet:uOriginalValue
#Define VK_Z 26 // 538 ?
SetKey( VK_Z, {|| IF( GetKeyState( VK_CONTROL ), MY_FUNCTION(), NIL ) } )
nageswaragunupudi wrote:Please try
- Code: Select all Expand view RUN
oGet:Undo()