Hey Joseph,
I am trying to reproduce this, with Firefox 3.6 on Mac OS X 10.5 and
latest git, but fail to do so.
Do you see the behavior with the attached test case, or can you modify
it so that you see it ?
Regards,
koen
/*
* Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
*
* See the LICENSE file for terms of use.
*/
#include <iostream>
#include <boost/lexical_cast.hpp>
#include <Wt/WApplication>
#include <Wt/WDialog>
#include <Wt/WGridLayout>
#include <Wt/WVBoxLayout>
#include <Wt/WPushButton>
#include <Wt/WText>
using namespace Wt;
class TestApp : public WApplication {
public:
TestApp( const WEnvironment& env ) :
WApplication( env ) {
WPushButton *b = new WPushButton("Click", root());
b->clicked().connect(this, &TestApp::doit);
}
void doit()
{
WDialog dialog;
dialog.setWindowTitle( "Edit Processor Parameters" );
WVBoxLayout *contentsLayout = new WVBoxLayout();
dialog.contents()->setLayout( contentsLayout );
WGridLayout *grid = new WGridLayout();
contentsLayout->addLayout( grid, 1, Wt::AlignTop );
int row = 0;
int col = 0;
WText *label = new WText( "Name" );
grid->addWidget( label, row, 0 );
++row;
WPushButton *ok = new WPushButton( "OK" );
WPushButton *cancel = new WPushButton( "Cancel" );
grid->addWidget( ok, row, 0 );
grid->addWidget( cancel, row, 1 );
ok->clicked().connect( SLOT(&dialog, WDialog::accept) );
cancel->clicked().connect( SLOT(&dialog, WDialog::reject) );
if (dialog.exec() == WDialog::Accepted) {
std::cerr << "Accepted" << std::endl;
}
}
};
WApplication *createApplication(const WEnvironment& env)
{
WApplication *app = new TestApp(env);
return app;
}
int main(int argc, char **argv)
{
return WRun(argc, argv, &createApplication);
}
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest