|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
FXTopWindow::flash in FXMessageBox doesn't flashFXTopWindow::flash in FXMessageBox doesn't flash Steps to reproduce 1. Run attached source file. 2. Press the button. 3. Observe that a FXMessageBox will pop up. 4. Observe that a timeout is set to call flash after Step 3. Expected results The source in FXTopWindow is going to Flash the window to get user's attention. Actual results The window did not flash while the flash method was being called in the timeout. Notes fox-1.7.20.tar.gz (DEVELOPMENT). [DMOREtti.cpp] #include <fx.h> #include <iostream> using namespace std; class DMOREtti : public FX::FXMainWindow { FXDECLARE(DMOREtti) protected: DMOREtti() {;} public: enum { ID_DMOREtti = FXMainWindow::ID_LAST }; FXMessageBox *m_messagebox; DMOREtti(FXApp* a); long onTimeout(FXObject*, FXSelector, void* ptr); long onCommand(FXObject*, FXSelector, void* ptr); virtual ~DMOREtti() {;} virtual void create() {FXMainWindow::create();show(PLACEMENT_SCREEN); } }; FXDEFMAP(DMOREtti) DMOREttiMap[] = { FXMAPFUNC(SEL_TIMEOUT, DMOREtti::ID_DMOREtti, DMOREtti::onTimeout), FXMAPFUNC(SEL_COMMAND, DMOREtti::ID_DMOREtti, DMOREtti::onCommand) }; FXIMPLEMENT(DMOREtti, FX::FXMainWindow, DMOREttiMap, ARRAYNUMBER(DMOREttiMap)) DMOREtti::DMOREtti(FXApp* a) : FXMainWindow(a, "DMOREtti", NULL, NULL, DECOR_TITLE | DECOR_MINIMIZE | DECOR_CLOSE | LAYOUT_FILL_X | LAYOUT_FILL_Y | LAYOUT_FIX_WIDTH, 0, 0, 300, 300) { new FXButton(this, "DMOREtti",NULL,this,DMOREtti::ID_DMOREtti, LAYOUT_FILL_X|LAYOUT_FILL_Y) ; } int main(int argc, char *argv[]) { FXApp application("DMOREtti", "DMOREtti"); application.init(argc, argv); new DMOREtti(&application); application.create(); return application.run(); } long DMOREtti::onCommand(FXObject*, FXSelector, void* ptr){ m_messagebox=NULL; getApp()->addTimeout(this, ID_DMOREtti, 1000000000); m_messagebox = new FXMessageBox(this, "DMOREtti", "DMOREtti",NULL,FX::MBOX_OK|DECOR_TITLE|DECOR_BORDER); m_messagebox->execute(PLACEMENT_OWNER); return 1; } long DMOREtti::onTimeout(FXObject*, FXSelector, void* ptr) { if(m_messagebox!=NULL){ m_messagebox->flash(true); cout << "m_messagebox->flash(true);" << endl; getApp()->addTimeout(this, ID_DMOREtti, 1000000000); } return 1; } ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Foxgui-users mailing list Foxgui-users@... https://lists.sourceforge.net/lists/listinfo/foxgui-users |
|
|
Re: FXTopWindow::flash in FXMessageBox doesn't flashOn Sunday 01 November 2009, Jason Heblack wrote:
> > FXTopWindow::flash in FXMessageBox doesn't flash > > Steps to reproduce > 1. Run attached source file. > 2. Press the button. > 3. Observe that a FXMessageBox will pop up. > 4. Observe that a timeout is set to call flash after Step 3. > > Expected results > The source in FXTopWindow is going to Flash the window to get user's > attention. > > Actual results > The window did not flash while the flash method was being called in the > timeout. > > Notes > fox-1.7.20.tar.gz (DEVELOPMENT). > For issues where the Window Manager is involved, its is important to mention the operating environment of the FOX program, since in this case the Window Manager is responsible for the visual effect of "flash()" or attention mode. - Jeroen -- +----------------------------------------------------------------------------+ | Copyright (C) 17:20 11/ 1/2009 Jeroen van der Zijp. All Rights Reserved. | +----------------------------------------------------------------------------+ ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Foxgui-users mailing list Foxgui-users@... https://lists.sourceforge.net/lists/listinfo/foxgui-users |
| Free embeddable forum powered by Nabble | Forum Help |