Home » U++ Library support » TabCtrl » TabCtrl and layouts
TabCtrl and layouts [message #8102] |
Thu, 08 February 2007 01:27 |
MikeyV
Messages: 20 Registered: February 2007
|
Promising Member |
|
|
Hello again.
Let me show you my code first, and then I'll tell you my problem.
In SATSII.h
---------------
class Sats : public WithSatsLayout<TopWindow> {
WithISTAddLayout<ParentCtrl> ISTAdd;
WithOpsAreaUpdLayout<ParentCtrl> OpsAreaUpd;
---------------------------
In main.cpp
---------------------------
void Sats::DoSm() {
tab.Reset();
CtrlLayout(ISTAdd);
tab.Add(ISTAdd, "Add Soldier");
}
void Sats::DoOps() {
tab.Reset();
CtrlLayout(OpsAreaUpd);
tab.Add(OpsAreaUpd, "Area Update");
}
---------------------------
This works sortof how I expected it to as in the tabs are cleared and renamed, and the new layout is loaded. However, the layouts just appear one on top of the other.
How do I clear the layout so the new layout is the only one showing?
|
|
|
|
|
|
Re: TabCtrl and layouts [message #8110 is a reply to message #8109] |
Thu, 08 February 2007 21:31 |
MikeyV
Messages: 20 Registered: February 2007
|
Promising Member |
|
|
Yay! I found a bug and wasn't even trying. Thank you for the quick feedback, I will make changes to TabCtrl.cpp now.
Thanks again.
Edit: Ok, made the changes, and now it works as expected. Thanks so much.
[Updated on: Thu, 08 February 2007 21:41] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Thu Apr 18 08:19:39 CEST 2024
Total time taken to generate the page: 0.02158 seconds
|