IonicWind Software

IWBasic => General Questions => Topic started by: ckoehn on February 12, 2010, 04:18:42 PM

Title: Edit box caret
Post by: ckoehn on February 12, 2010, 04:18:42 PM
Is it possible to set the caret wherever a person wants to in the text when there is a selection?  Let's say there is text like "This is it" in the edit box.  The selection is  "is it" and the caret needs to blink in front of 'is".  You can do this when you manually select the text, but can you make your progam do this?

When you use "CONTROLCMD win,editbox,@EDSETSELECTION, start,end"  the caret is always at the end of the selection.

Thanks,
Clint
Title: Re: Edit box caret
Post by: fasecero on February 13, 2010, 01:20:06 AM
Just use:


CONTROLCMD win,editbox, @EDSETSELECTION, end, start

Title: Re: Edit box caret
Post by: ckoehn on February 13, 2010, 01:32:57 PM
fascero, thanks for looking at this.  I think I tried that and it didn't work. (Will look at it again later today)