Positioning a cursor in a GET behind the last char
Posted: Sat May 29, 2010 9:47 am
Hi
I am looking for a possibility to position the cursor in a get in an eval clause behind the last existing
letter without the need to press xbeK_END first..
Had no success with the XBase methods..
There's a method :Home() in the DC_XbpGet class - but no corresponding :End()
Thks
- MIchael
Sample code:
#include "DCDIALOG.CH"
#include "APPEVENT.CH"
Procedure Main
Local Getlist := {}, Getoptions
Local cTestVar := "Hello "
@ 1,1 DCGET cTestVar PICTURE "XXXXX99999" ;
EVAL {|o|PostAppEvent(xbeP_Keyboard, xbeK_END,,o) }
DCGETOPTIONS NOMINBUTTON NOMAXBUTTON
DCREAD GUI FIT MODAL TITLE "Test" BUTTONS DCGUI_BUTTON_EXIT OPTIONS GetOptions
return
I am looking for a possibility to position the cursor in a get in an eval clause behind the last existing
letter without the need to press xbeK_END first..
Had no success with the XBase methods..
There's a method :Home() in the DC_XbpGet class - but no corresponding :End()
Thks
- MIchael
Sample code:
#include "DCDIALOG.CH"
#include "APPEVENT.CH"
Procedure Main
Local Getlist := {}, Getoptions
Local cTestVar := "Hello "
@ 1,1 DCGET cTestVar PICTURE "XXXXX99999" ;
EVAL {|o|PostAppEvent(xbeP_Keyboard, xbeK_END,,o) }
DCGETOPTIONS NOMINBUTTON NOMAXBUTTON
DCREAD GUI FIT MODAL TITLE "Test" BUTTONS DCGUI_BUTTON_EXIT OPTIONS GetOptions
return