Search found 138 matches: undo

Return to advanced search

Re: Error al abrir archivo vrd con funcion EReport()

Estimado Leandro, En esas líneas se vacian los DBFs que guardan el undo y el redo:   SELECT 0   USE ( oGenVar:cUndoFileName + ".dbf" ) ALIAS TMPUNDO   ZAP   USE ( oGenVar:cRedoFileName + ".dbf" ...
by Antonio Linares
Mon Nov 06, 2023 6:19 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error al abrir archivo vrd con funcion EReport()
Replies: 5
Views: 432

Re: RTF Spell Checker

... numbered lists within the control. Copy, cut, and paste: Users can perform clipboard operations to copy, cut, and paste text within the control. Undo and redo: The control may support undo and redo functionality to revert or restore changes made to the text. Spell checking: While the specific ...
by TimStone
Tue May 23, 2023 9:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: RTF Spell Checker
Replies: 7
Views: 408

Re: How to obtain plain text from a RTF control?

... (Correct me if my opinion is not correct) From: https://learn.microsoft.com/en-us/windows/win32/controls/em-settextmode Sets the text mode or undo level of a rich edit control. The message fails if the control contains any text. What the companion requests is to be able to remove all the formatting ...
by cnavarro
Wed Oct 19, 2022 6:50 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to obtain plain text from a RTF control?
Replies: 8
Views: 410

Re: Transaction security with DBF

... apparatus in the event that a cut occurs. In any case, the rollback, as far as I know, does not exist in all bb.dd. and it doesn't totally undo everything Salu2
by hmpaquito
Fri Sep 09, 2022 7:15 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Transaction security with DBF
Replies: 9
Views: 726

Re: Transaction security with DBF

... to do, before doing them and after doing them, to confirm that they were performed successfully. If any of those operations fails, then you "undo" what you have done. That is traditionally known as a "rollback". SQL engines provide such capability but using DBFs we have to ...
by Antonio Linares
Wed Aug 31, 2022 2:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Transaction security with DBF
Replies: 9
Views: 726

Re: Undo function (Ctrl+Z) in :TGet

Can it do in TGet classes?

Yes.
Posted after testing.
by nageswaragunupudi
Fri Nov 05, 2021 2:40 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Undo function (Ctrl+Z) in :TGet
Replies: 11
Views: 606

Re: Undo function (Ctrl+Z) in :TGet

Dear Master,

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

oGet:bKeyChar := { |k,f,o| If( k == 26, ( o:cText := o:uOriginalValue, 0 ), nil ) }
 
by dutch
Thu Nov 04, 2021 3:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Undo function (Ctrl+Z) in :TGet
Replies: 11
Views: 606

Re: Undo function (Ctrl+Z) in :TGet

oGet:undo() -> works Works only when oGet has focus. By any chance/mistake if oGet:undo() is called when oGet is out of focus, unexpected and undesirable results can happen. oGet:cText := v:oGet:Original -> works This ...
by nageswaragunupudi
Mon Nov 01, 2021 3:34 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Undo function (Ctrl+Z) in :TGet
Replies: 11
Views: 606

Re: Undo function (Ctrl+Z) in :TGet

Dear Master, oGet:undo() -> worksoGet:cText := v:oGet:Original -> works // Do not responseSETKEY( 26    , {|p, l, v| GetUndo(v) } )  // orSetKey( VK_Z, {|p, l, v| IF( GetKeyState( ...
by dutch
Mon Nov 01, 2021 2:17 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Undo function (Ctrl+Z) in :TGet
Replies: 11
Views: 606

Re: Undo function (Ctrl+Z) in :TGet

Dear Karinha, SetKey() do not accept CTRL+Z. It doesn't go through My_Function(). Maybe: #Define VK_Z 26  // 538  ?   SetKey( VK_Z, {|| IF( GetKeyState( VK_CONTROL ), MY_FUNCTION(), NIL ) } )  http://forums.fivetechsupport.com/viewtopic.php?f...
by dutch
Mon Nov 01, 2021 2:14 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Undo function (Ctrl+Z) in :TGet
Replies: 11
Views: 606

Re: Undo function (Ctrl+Z) in :TGet

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

oGet:Undo()
 


This is far better than oGet:Undo()

Code: Select all  Expand view

oGet:cText := oGet:uOriginalValue
 
by nageswaragunupudi
Sun Oct 31, 2021 3:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Undo function (Ctrl+Z) in :TGet
Replies: 11
Views: 606

Re: Undo function (Ctrl+Z) in :TGet

Maybe:

Code: Select all  Expand view

#Define VK_Z 26  // 538  ?

   SetKey( VK_Z, {|| IF( GetKeyState( VK_CONTROL ), MY_FUNCTION(), NIL ) } )
 


http://forums.fivetechsupport.com/viewtopic.php?f=6&t=8985

Regards, saludos.
by karinha
Sun Oct 31, 2021 3:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Undo function (Ctrl+Z) in :TGet
Replies: 11
Views: 606

Re: Undo function (Ctrl+Z) in :TGet

Dear karinha, Your sample is working and I got it. TGet:undo() must still TGet in Focus. Is it possible to add Ctrl+Z to TGet for :undo()? I try as below at the main but ; 1. it works in case of typing more charactor. 2. it doesn't work in case delete ...
by dutch
Sun Oct 31, 2021 2:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Undo function (Ctrl+Z) in :TGet
Replies: 11
Views: 606

Re: Undo function (Ctrl+Z) in :TGet

...    MENUITEM "Cancel"        ; // "Cancelar"          ACTION( oGet:Undo() )       MENUITEM "Empty"         ; // "Vacío"        ...
by karinha
Sun Oct 31, 2021 2:00 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Undo function (Ctrl+Z) in :TGet
Replies: 11
Views: 606

Re: Undo function (Ctrl+Z) in :TGet

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

oGet:Undo()
 
by dutch
Sun Oct 31, 2021 1:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Undo function (Ctrl+Z) in :TGet
Replies: 11
Views: 606
Next

Return to advanced search