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 » U++ Widgets - General questions or Mixed problems » Focus without selecion
Focus without selecion [message #31142] Wed, 09 February 2011 15:17 Go to next message
JoseB is currently offline  JoseB
Messages: 37
Registered: March 2009
Member
Hi

is it possible to set the focus to a edit box without selection its contents (cursor at the end)? Also, when we use the tab key to move from control to control (IterateFocusForward()) the edit contents are always selected...

Thanks

JoseB
Re: Focus without selecion [message #31169 is a reply to message #31142] Fri, 11 February 2011 12:33 Go to previous message
JoseB is currently offline  JoseB
Messages: 37
Registered: March 2009
Member
I think i found a solution:

void CMyDlg::ChildGotFocus(void)
{
	EditString *pEditStr=NULL;
	pEditStr=dynamic_cast<EditString *>(GetFocusCtrl());
	if(pEditStr)
	{
		pEditStr->CancelSelection(); //Remove
		pEditStr->Key(K_END,0); //Goto End
        }
...




JoseB
Previous Topic: Executing a SQL statment containning a ' ?
Next Topic: Extending EditString to filter keys
Goto Forum:
  


Current Time: Thu Jul 18 19:20:23 CEST 2024

Total time taken to generate the page: 0.01261 seconds