Hi all,
in order to avoid a double click on a push button is enough to connect
to the button his own
disable method like this?
Wt::WPushButton * workButton = new Wt::WPushButton("Work");
ok->clicked().connect(ok, &Wt::WPushButton::disable);
ok->clicked().connect(this, &AClass::work);
or better to do something like this?
Wt::WPushButton * workButton = new Wt::WPushButton("Work");
ok->clicked().connect(this, &AClass::work);
AClass::work() {
if( workButton->isDisabled() ) {
return;
}
....
workButton->disable();
}
Regards
Gaetano Mendola
--
cpp-today.blogspot.com
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest