Hi,
I have my own MessageBox class that uses fox 1.6. It is used like that (simplified) :
MessageBox mb("title","text");
mb.addButton("Button1",1);//
return value 1
mb.addbutton("Button2",2);//return value 2
mb.execute();
int choice = mb.getRetVal();
There
is no need to add some FOX code, and that's the point of the function.
I use it to be able to create custom MessageBoxes in various
applications that use different graphic libraries (because developped
by previous employees where i work).
How it works :
In the constructor, nothing special is done.
At each call to addButton(), i add to a vector a structure containing a text and a return value for a button
At
the call of execute(), i create a FXApp, create a MainWindow, add a
FXLabel for the Mesage text, and add FXButtons in a FXHorizontalFrame
in function of the elements in my buttons vector.
Each Button has a message id of ID_BUTTON+returnValue
This
works great on linux in a qt3 app for exemple. I'm having a problem
however on windows in a MFC application in Release mode (but not in
debug mode). No text is displayed in the message box text, or in the
buttons. The stangest is that right before constructing the FXLabel and
FXButtons, the variable containing the text has a correct value. After
that line, calling getText() returns an empty text.
Any ideas where it might come from?
OB
------------------------------------------------------------------------------
Come build with us! The BlackBerry® 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/devconf_______________________________________________
Foxgui-users mailing list
Foxgui-users@...
https://lists.sourceforge.net/lists/listinfo/foxgui-users