Mark Petryk
2014-12-23 23:24:02 UTC
We have a simply website we are trying to assemble, as a demo.
We have a WStackedWidget with a WMenu controller. However, we are
trying to add an additional page outside the Menu, that we can switch to
manually, from an internal anchor;
So, when I click on my anchor, for instance, I run the
internalPathChanged event, and I respond, properly, and I set the
currentWidget in my stacked widget, but nothing displays. I have even
tried to click on the menu, like menuIndex(1) and tried to change the
stacked widget to index(2) and still the stacked widget doesn't change.
Am I misunderstanding the relationship between the WMenu and
WStackedWidget? Why cannot I change the StackedWidget index?
(psudo code)
We have a WStackedWidget with a WMenu controller. However, we are
trying to add an additional page outside the Menu, that we can switch to
manually, from an internal anchor;
So, when I click on my anchor, for instance, I run the
internalPathChanged event, and I respond, properly, and I set the
currentWidget in my stacked widget, but nothing displays. I have even
tried to click on the menu, like menuIndex(1) and tried to change the
stacked widget to index(2) and still the stacked widget doesn't change.
Am I misunderstanding the relationship between the WMenu and
WStackedWidget? Why cannot I change the StackedWidget index?
(psudo code)
_contents = new WStackedWidget;
WMenu( "Home", "Products", "About", "Contact", _contents );
_extraPage = new WText( "extra page" );
_contents-> addWidget( _extraPage );
_contents-> setCurrentWidget( _extraPage ); // this no workie
WMenu( "Home", "Products", "About", "Contact", _contents );
_extraPage = new WText( "extra page" );
_contents-> addWidget( _extraPage );
_contents-> setCurrentWidget( _extraPage ); // this no workie
--
~mark
~c:469-556-5075
~t:***@mms.att.net
~w:http://www.lorimarksolutions.com
~mark
~c:469-556-5075
~t:***@mms.att.net
~w:http://www.lorimarksolutions.com