Is undo feature contained in Tget class?
I dont't want to create something which already exist.
May thanks
Marco
Marco Boschi
info@marcoboschi.it
info@marcoboschi.it
Is undo feature contained in Tget class?
I dont't want to create something which already exist.
May thanks
Marco
METHOD UnDo() INLINE ::cText := ::oGet:Original
#include "fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
LOCAL oGet1 , cGet1 := SPACE(100)
LOCAL oGet2 , cGet2 := SPACE(100)
DEFINE DIALOG oDlg FROM 10 , 10 TO 400 , 700 PIXEL
@ 30 , 1 GET oGet1 VAR cGet1 OF oDlg SIZE 200 , 20 PIXEL
@ 70 , 1 GET oGet2 VAR cGet2 OF oDlg SIZE 200 , 20 PIXEL
ACTIVATE DIALOG oDLg CENTER
RETURN NILUndo become enabled after a Cut and Delete operation. I suppose it should be active after a Paste operation too.
EMG
Enrico,
Ok Now I see the voice "Undo" enabled but only If I use popup menu.
If I work with keyboard, for instance backspace or delete key, the "undo" voice is never enabled
#include "fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
LOCAL oGet1 , cGet1 := SPACE(100)
LOCAL oGet2 , cGet2 := SPACE(100)
DEFINE DIALOG oDlg FROM 10 , 10 TO 400 , 700 PIXEL
@ 30 , 1 GET oGet1 VAR cGet1 OF oDlg SIZE 200 , 20 PIXEL
@ 70 , 1 GET oGet2 VAR cGet2 OF oDlg SIZE 200 , 20 PIXEL
ACTIVATE DIALOG oDLg CENTER
RETURN NILup
Put your customized popup menu in oGet:bRClicked or in TGet:RButtonDown().
EMG
Ok,
the last question.
Is it possible to manage these operation with four buttons in your opinion?
I've tried but without success.
Marco
Yes, buttons or menus doesn't make any differences.
EMG
#include "fivewin.ch"
#define crlf CHR(13)+CHR(10)
FUNCTION MAIN()
LOCAL oDlg
LOCAL oGet1 , cGet1 := "Aaaaa " + crlf + "Bbbbbbb "
LOCAL oGet2 , cGet2 := "Cccccc Dddd Eeeeee "
DEFINE DIALOG oDlg
@ 1 , 1 GET oGet1 VAR cGet1 OF oDlg SIZE 100 , 30 PIXEL MEMO
@ 3 , 1 GET oGet2 VAR cGet2 OF oDlg
ACTIVATE DIALOG oDlg CENTER
RETURN nil