Home » U++ Library support » TabCtrl » Hide tab in TabCtrl
Re: Hide tab in TabCtrl [message #25600 is a reply to message #25596] |
Wed, 03 March 2010 09:13 |
|
koldo
Messages: 3357 Registered: August 2008
|
Senior Veteran |
|
|
luzr wrote on Tue, 02 March 2010 22:20 |
koldo wrote on Tue, 02 March 2010 15:03 |
luzr wrote on Tue, 02 March 2010 19:03 | Right now, you can remove it (and reinsert later).
|
Hello Mirek
It was because some times it will be visible and sometimes it will not, but in all times I wanted to use some data inside.
|
Hm, and what is the problem?
You usually have all tabs as variables of master dialog class. Them being part of TabCtrl or not is irrelevant to the data inside.
Mirek
|
Hello Mirek
You are right, tab contents are outside TabCtrl.
The problem is that if I remove a tab, the WhenAction() functions will not know which tab has been clicked.
Could it be possible to have something like this in TabCtrl class ?:
In class Item, to know the text of a tab:
String GetText() {return text;};
In class TabCtrl, to now the id of a tab with a title:
int GetItemId(const char *title) {
for (int i = 0; i < GetCount(); ++i) {
if (GetItem(i).GetText() == title)
return i;
}
return -1;
}
Best regards
IƱaki
|
|
|
Goto Forum:
Current Time: Sat Apr 27 23:07:24 CEST 2024
Total time taken to generate the page: 0.03712 seconds
|