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 » TabCtrl » how to move the focus from one tab page to another one
Re: how to move the focus from one tab page to another one [message #2986 is a reply to message #2985] Tue, 02 May 2006 20:17 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
forlano wrote on Tue, 02 May 2006 13:15

Hello,

I've 4 beautyfull tab pages (tab1,..., tab4). In corrispondence of an action performed in tab1, I desire that tab2 be displayed... and maybe the focus should be on button btnAuto of tab2... but this last task is not necessary.
How to do it? To show tab2 I tried:
ActiveFocus(tab2);  
...
ActiveFocus(tab2.btnAuto); 
...
tab2.btnAuto.SetFocus(); 
...
tab2.btnAuto.GetFocusCtrl(); 

none of them work. Any idea?



void TabCtrl::Set(int _top, bool focus = false);

_top - index of tab
focus - move focus to the first child

Quote:


PS: if nobody will answer to my old post regarding how to get the current directory of the application, I'll use a dirty... very dirty way to get it. Smile


Sorry, missed that one. .exe folder related (at the moment, non-portable, just Win32):

String GetExeDirFile(const char *fp);

- file from the .exe folder

String GetExeFilePath();

- full path to .exe

Means, .exe folder is GetFileFolder(GetExeFilePath());

Current working directory:

String GetCurrentDirectory();

Mirek
 
Read Message
Read Message
Read Message
Next Topic: Problems with the visualization of tabctrl in 608-dev1
Goto Forum:
  


Current Time: Thu May 16 13:48:15 CEST 2024

Total time taken to generate the page: 0.03390 seconds