|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Fox message / input box positioningHello,
I do this: FXint response; response = FX::FXMessageBox::question(this, MBOX_OK_CANCEL, "Warning!","Press ok or cancel!"); and the message box pops up in the middle of my app. But if I do this: FXString input; FX::FXInputDialog::getString(input, this, "Enter Job Number", "Enter Job #",0); The input dialog pops up where the mouse pointer is. How do I direct this behavior? Thanks, Alex Martin ------------------------------------------------------------------------------ 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 |
|
|
Re: Fox message / input box positioningOn Wednesday 16 September 2009, Alex Martin wrote:
> Hello, > > I do this: > > FXint response; > response = FX::FXMessageBox::question(this, MBOX_OK_CANCEL, > "Warning!","Press ok or cancel!"); > > and the message box pops up in the middle of my app. > > But if I do this: > > FXString input; > FX::FXInputDialog::getString(input, this, "Enter Job Number", "Enter Job > #",0); > > The input dialog pops up where the mouse pointer is. > > How do I direct this behavior? The problem was the PLACEMENT_OWNER option wasn't passed to execute() in the FXInputDialog::getString() implementation. This is now fixed in the code. For now, you can either live with it, or substitute the convenience function with the following: FXInputDialog inputdialog(this,"Enter Job Number","Enter Job#",NULL,INPUTDIALOG_STRING,0,0,0,0); inputdialog.setText(result); if(inputdialog.execute(PLACEMENT_OWNER)){ // <<< PLACEMENT_OWNER causes the dialog to popup centered on its owner result=inputdialog.getText(); return true; } Hope this helps, - Jeroen P.S. The FOX website should be back on-line some-time next week, hopefully! ------------------------------------------------------------------------------ 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 |
|
|
|
| Free embeddable forum powered by Nabble | Forum Help |