#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
oGet1:bGotFocus := { || entraget( oGet1 ) }
@ 3 , 1 GET oGet2 VAR cGet2 OF oDlg
oGet2:bGotFocus := { || entraget( oGet2 ) }
ACTIVATE DIALOG oDlg CENTER
RETURN nil
FUNCTION ENTRAGET( oGet )
LOCAL nPos1 := oGet:nPos
LOCAL nPos2 := 1
IF GetKeyState( VK_LBUTTON )
IF nPos1 < Len( RTrim( oGet:varget() ) )
nPos2 := nPos1 +1
ELSE
nPos2 := Len( RTrim( oGet:varget() ) )+ 1
ENDIF
oGet:SetPos( nPos2 )
ELSE
oGet:SelectAll()
ENDIF
RETURN NIL
Antonio Linares wrote:Ok, I think I have the right solution:
We are going to implement a new Class TEdit that uses a standard Windows Edit control with no related Clipper/Harbour GET at all, this way everything will be fine: Unicode support, etc
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 47 guests