Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » LineEdit, EditFields, DocEdit » EditString and moving cursor left or right...
EditString and moving cursor left or right... [message #20271] Fri, 06 March 2009 12:26 Go to next message
Kajko is currently offline  Kajko
Messages: 14
Registered: December 2008
Location: Ireland, Serbia
Promising Member
Hi,

How can I move cursor left or right inside EditString ?
I have tried to use GetCursor and SetCursor, but just wandering is there more cleaner way to do that ?

Thnx,
Sasa


b78a07c7fb9b68436af9fd23f4e76cc5
Re: EditString and moving cursor left or right... [message #20281 is a reply to message #20271] Fri, 06 March 2009 18:18 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
For what purpose? (Reply might depend on it Smile

I think SetSelection is one possible way. You could also just invoke Key(K_LEFT, 1), but that is of course a little bit nasty...

Mirek

Re: EditString and moving cursor left or right... [message #20332 is a reply to message #20271] Thu, 12 March 2009 00:18 Go to previous message
Kajko is currently offline  Kajko
Messages: 14
Registered: December 2008
Location: Ireland, Serbia
Promising Member
Sorry for delay...

I was making MASK edit, and SetSelection has done the trick (sending keys was out of question).
It is derived from EditString and working fine ( test cases Smile ).
I will try to finish it over the weekend and post it here, maybe someone will find it useful.

Sasa


b78a07c7fb9b68436af9fd23f4e76cc5
Previous Topic: EditString and custom msg on status bar
Next Topic: LineEdit MouseMove and LeftDrag bug fix
Goto Forum:
  


Current Time: Thu Mar 28 11:32:11 CET 2024

Total time taken to generate the page: 0.01052 seconds