Julia Dudascik (Contractor)
2016-07-22 14:47:50 UTC
Hello
I created a message box (FXWindow::error(...)), to notify the User of an
invalid input.
This message box is displayed, following the press of a button, which
checks a text box for the User input. When the OK button is pressed within
the Message Box, the application ends.
It goes to my return statement, after FXApp run(). It is almost like
Message Box tells the application to end when the OK button is pressed. Do
you know why it would do this?
I also tried to create a class that inherits from MessageBox, so I could
override the onCmdClicked button press. I also ran into an issue with this
because of some private constructors in message box. So I have 2 questions:
1.) When you press the OK button in the message box, what does it do
"behind the scenes"? Is it telling my application to end?
2.) If the only way around this is to create a class that inherits from
MessageBox, could you show me a sample on how to do that? I know it might
seem like a silly request, but I am really having a problem with it. I was
able to create other classes, which inherit from FXMainWindow, but for some
reason FXMessageBox seems to be set-up differently.
Thanks
Julia
I created a message box (FXWindow::error(...)), to notify the User of an
invalid input.
This message box is displayed, following the press of a button, which
checks a text box for the User input. When the OK button is pressed within
the Message Box, the application ends.
It goes to my return statement, after FXApp run(). It is almost like
Message Box tells the application to end when the OK button is pressed. Do
you know why it would do this?
I also tried to create a class that inherits from MessageBox, so I could
override the onCmdClicked button press. I also ran into an issue with this
because of some private constructors in message box. So I have 2 questions:
1.) When you press the OK button in the message box, what does it do
"behind the scenes"? Is it telling my application to end?
2.) If the only way around this is to create a class that inherits from
MessageBox, could you show me a sample on how to do that? I know it might
seem like a silly request, but I am really having a problem with it. I was
able to create other classes, which inherit from FXMainWindow, but for some
reason FXMessageBox seems to be set-up differently.
Thanks
Julia