Home » Community » Newbie corner » Problem in example code (Tried SplitterFrame yet minor problem.)
Re: Problem in example code [message #45769 is a reply to message #45760] |
Sun, 03 January 2016 12:57   |
|
vegaonline wrote on Sat, 02 January 2016 22:39@HONZA,
Thanks for kindly guiding me.
I am trying to use ParentCtrl, while I am facing problem.
I am attaching required files. The initial screen is OK. When I press "Configure", I want "CardLayout1" is to be shown which is not coming.
By the by, please ignore many commented lines as I am learner.
Please guide me.
Hi Abhijit,
The only part you were missing is adding and removing the ParentCtrl as necessary. The two functions called from menu should do something like this:
void Testing::doConfig() {
doPlot.Remove();
Add(doCard);
}
void Testing::doGeom() {
doCard.Remove();
Add(doPlot);
}
Also, the menu should be added using AddFrame, which you probably already tried, I've seen it in one of the comments It makes things much easier when switching the layouts, sinco you don't have to care about it's position. I have modified the sources and attach them for your reference.
|
|
|
Goto Forum:
Current Time: Sun May 04 22:59:07 CEST 2025
Total time taken to generate the page: 0.02967 seconds
|