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   |
 |
mirek
Messages: 14255 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.
|
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
|
|
|
|
Goto Forum:
Current Time: Fri Apr 25 18:58:27 CEST 2025
Total time taken to generate the page: 0.02789 seconds
|