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?
|
|
|
Goto Forum:
Current Time: Mon Apr 29 06:00:18 CEST 2024
Total time taken to generate the page: 0.04007 seconds
|