On Wed, Dec 30, 2009 at 7:56 AM, Koen Deforche <[email protected]> wrote:
> 2009/12/30 OvermindDL1 <[email protected]>:
>> It is all in a WVBoxLayout.  I am using your trunk from git from
>> about, let me check...  I have no clue how to check that with git...
>> Last file write date is from December 21, 2009, is that up to date
>> enough or should I update and recompile again?
>
> That should be up-to-date. It looks like you put the "UserManager"
> directly into a container widget without a layout manager. Can you
> paste the code where you create that widget and add it to a parent ?

This is all in the constructor of the WApplication subclass that is used:
{
        WVBoxLayout *vertLayout = new WVBoxLayout(root());
        vertLayout->setSpacing(0);
        vertLayout->setContentsMargins(0,0,0,0);

        WStackedWidget *contentsStack = new WStackedWidget();
        // Show scrollbars when needed ...
        contentsStack->setOverflow(WContainerWidget::OverflowAuto);
        // ... and work around a bug in IE (see setOverflow() documentation)
        contentsStack->setPositionScheme(Relative);
        contentsStack->setStyleClass("contents");

        menu_ = new WMenu(contentsStack, Horizontal, 0);
        menu_->setRenderAsList(true);
        menu_->setStyleClass("menu mainmenu");

        UserManagerWidget *userWidget = new UserManagerWidget(session_,
pathName_+"user/");
        userWidget->loginSuccessfulEvent().connect(this, &MainMenu_App::login_);
        menu_->addItem("User", userWidget, WMenuItem::LazyLoading;)

        menu_->select(0);

        menu_->setInternalPathEnabled("/");

        setInternalPath(pathName_, true);
        vertLayout->addWidget(menu_, 0);
        vertLayout->addWidget(contentsStack, 1);
}


And for note, in the UserManagerWidget constructor is this line:

        setObjectName("UserManager");

As as you can see, I am setting the name directly on the
UserManagerWidget itself.

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to