April 30, 2024, 09:42:44 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Edit box caret

Started by ckoehn, February 12, 2010, 04:18:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ckoehn

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

fasecero

Just use:


CONTROLCMD win,editbox, @EDSETSELECTION, end, start


ckoehn

fascero, thanks for looking at this.  I think I tried that and it didn't work. (Will look at it again later today)