#include "fivewin.ch"
function main()
local oDlg, oGet, cString:= "1234567"
define dialog oDlg title "Test Get Select"
@ 2,2 get oGet var cString of oDlg update
activate dialog oDlg;
on init (oGet:setSel(2,5), oGet:refresh())
return nil
It doesn't work with FWH 2.6, May 2005 build/Harbour 43, nor with Clipper. Am I doing something wrong, or maybe setSel() does something else?
#include "fivewin.ch"
#define EM_SETSEL 177
function main()
local oDlg, oGet, cString:= "1234567"
define dialog oDlg title "Test Get Select"
@ 2,2 get oGet var cString of oDlg update on change oGet:PostMsg( EM_SETSEL, 2, 5 )
activate dialog oDlg
return nil