Hi Koen,

> This was (supposedly) fixed in Wt. You may have another 
> problem? Can you send me a screenshot?

better yet, here is code to reproduce the problem. The combo box behaves 
incorrectly, when it is added to a container inside a tab.

Code follows.
ViewController.hpp :
-----------------------

#ifndef VIEW_CONTROLLER_H_
#define VIEW_CONTROLLER_H_

#include <WApplication>
#include <Ext/TabWidget>

class ViewController : public Wt::WApplication {

public:
    ViewController(const Wt::WEnvironment& env);
    ~ViewController();

};

#endif // VIEW_CONTROLLER_H_

------------------------

ViewController.cpp :
------------------------

#include "ViewController.hpp"

#include <WDefaultLayout>
#include <WContainerWidget>

#include <Ext/ComboBox>
#include <Ext/Container>
#include <Ext/TabWidget>

using namespace Wt;

ViewController::ViewController(const Wt::WEnvironment& env)
: WApplication(env)
{
    WContainerWidget* myRoot = new WContainerWidget(root());
    Ext::Container *viewPort = new Ext::Container(myRoot);

    Ext::TabWidget* tabs = new Ext::TabWidget();
    Ext::Panel* configurePanel = new Ext::Panel();

    // Create ComboBox
    Ext::ComboBox* selectTypeComboBox = new Ext::ComboBox();
    configurePanel->layout()->addWidget(selectTypeComboBox);
    selectTypeComboBox->setTextSize(15);
    selectTypeComboBox->addItem("Ford Mustang");
    selectTypeComboBox->addItem("Mazda MX3");
    selectTypeComboBox->addItem("Oldsmobile");
    selectTypeComboBox->addItem("Pumpkin carriage");

    tabs->addTab(configurePanel, "my tab");
    viewPort->layout()->addWidget(tabs);
}

ViewController::~ViewController()
{
}

WApplication *createApplication(const WEnvironment& env)
{
    WApplication *app = new ViewController(env);
    return app;
}

int main(int argc, char **argv)
{
    return WRun(argc, argv, &createApplication);
}

---------------------------

-- 
Med venlig hilsen / Best regards
Michael Sørensen Loft, Mjølner Informatics A/S

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to