Cursor-Position in GET

This forum is for eXpress++ general support.
Post Reply
Message
Author
Volker
Posts: 5
Joined: Sun Mar 14, 2010 9:01 am

Cursor-Position in GET

#1 Post by Volker »

Hi,

is there an option (i.e. in DCGETOPTIONS) to set cursor on position 1 when an input-field
gets focus by a mouse click?

At the moment the cursor is in the middle of the text.

I use Xbase 2.00.1334 and eXpress 2.0.266

Best regards
Volker

Wolfgang Ciriack
Posts: 478
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: Cursor-Position in GET

#2 Post by Wolfgang Ciriack »

Hello Volker,
put this at the beginning of your app:

Code: Select all

	DC_XbpGetSetInputFocusBlock({|x, y, o| NIL, ;
	                iif(.not. empty(o:Get:Buffer), o:Get:Pos := o:SavePos, NIL), ;
	                o:DateFlag := .T., ;
	                o:Home(), ;
	                DC_HiLiteGets(o, 1, o:GetList:GetOptions[nGETOPT_HILITECOLOR]), ;
	                DC_ColorGets(o,  1, o:GetList:GetOptions[aGETOPT_COLORGETS]), ;
	                NIL})
_______________________
Best Regards
Wolfgang

Volker
Posts: 5
Joined: Sun Mar 14, 2010 9:01 am

Re: Cursor-Position in GET

#3 Post by Volker »

Hello Wolfgang,

that works fine - thank you very much.

Volker

Post Reply