I’m supporting an existing application that uses root v28.00b. In some calls to new TGMsgBox() creates a modal dialog, while other calls create a modaless dialog.
I can’t figure out what causes the modal and/or the modaless TGMsgBox creation.
How can you specify the Modal property when calling new TGMsgBox()?
How can you specify the Dialog should not have the minimize/maximize/Close button when calling new TGMsgBox()?
Thank you for the response. Very interesting behavior with TGMsgBox().
On the following call, the TGMsgBox() is modaless. I know, because I put a breakpoint on the line, when I hit it, I press next line and I can continue to multiple lines below the call. I have to press continue to get the dialog box to display. At this point, I’m out of the function that makes the below call.
On other instances, the moment I press next line in my debugger, the tgmsgbox is displayed and control is back to the application. At this point I have a Modal dialog.
At this point – knowing TGMsgBox should be modal – I look deeper into what the prior developer did in TGMsgBox(). He may have hacked it up.
What would you recommend for displaying a message dialog and having the option to specify?
Modal/Modaless
Display/Not displaying the minimize/maximize/close “X” buttons on top right of dialog