- This topic has 2 replies, 2 voices, and was last updated 3 years, 4 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- The topic ‘Dialog not showing buttons’ is closed to new replies.
Integrated Application Platform
Integrated Application Platform › Forums › General › Dialog not showing buttons
I imported an old program into the 2018 version Suneido and found that a Dialog that comes up doesn’t have a “Close” button.
An example:
Dialog(0, Object('Mshtml', "description", xmin: 500, ymin: 500), title: "title")
I tried providing
style: WS.SYSMENU | WS.CAPTION
and
exStyle: WS_EX.DLGMODALFRAME
separately and in combination, but without any apparent effect. The Escape key and Alt + F4 are closing the dialog. It is just that the Close button is not visible.
Windows version is Win 7, 32 bit.
Is this a bug or am I forgetting something?
Thanks,
ajith
Hi Ajith,
You need to specify closeButton?:
For example: ToolDialog(0, #(Editor), closeButton?:)
It defaults to false because most of our dialogs have other buttons like OK/Cancel in which case it is unclear whether the ‘X’ close button acts like OK or like Cancel.
Dialog now ignores style: and exStyle: because we found it caused too much inconsistency in our applications because people would specify different options. And only certain combinations of style and exStyle work properly.
Best wishes,
Andrew
Hi Andrew,
Thanks for your reply. The button is showing up now.
Thanks,
ajith