Back to Four Js Website
Four Js Customer Forum
Subscribe for automatic updates:
RSS
Sign in for full access
|
Help
Four Js Development Tools Forum
>
Discussions by product
>
Genero BDL
>
Modal Dialog windows open on a MDI Container
Most recent posts
Pages: [
1
]
« previous
next »
Reply
|
Print
Author
Topic: Modal Dialog windows open on a MDI Container (Read 8602 times)
Nuno G.
Posts: 38
Modal Dialog windows open on a MDI Container
«
on:
April 03, 2014, 11:12:10 am »
whenever a modal dialog (e.g. call fgl_winmessage(...)) is open from a MDI window the close action is disabled. I allready tried to reactived from the menu with a dialog.setActionActive with no sucess. Any ideas will be highly appreciated.
Reuben B.
Posts: 1126
Re: Modal Dialog windows open on a MDI Container
«
Reply #1 on:
April 03, 2014, 11:22:27 pm »
Not sure if it is the same thing as this is nothing to do with MDI, but in early implementations of Genero the close action was active for MENU STYLE="dialog". The problem was that the underlying 4gl code had not been written to handle the possibility of the close X being triggered, and so the decision was made to disable the close action in such cases.
Consider 4gl code such as ...
MENU "Confirm?"
COMMAND "Yes"
LET result = "Y"
EXIT MENU
COMMAND "No"
LET result = "N"
EXIT MENU
END MENU
... when that was migrated to Genero, typically add a ATTRIBUTES(STYLE="dialog") so it appears as small dialog window.
In character, the result variable could only have a value of "Y" or "N". In GUI, if the user clicked the close button, the MENU would exit with the result variable not set to either"Y"or "N" . Hence the close action was disabled to prevent this possibility.
If you add an ON ACTION close and explicitly cater for the case of the close action being triggered then the close button should be available.
Reuben
Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of
https://4js.com/ask-reuben
Contributor to
https://github.com/FourjsGenero
Nuno G.
Posts: 38
Re: Modal Dialog windows open on a MDI Container
«
Reply #2 on:
April 05, 2014, 05:36:54 pm »
Thanks Reuben
Pages: [
1
]
Reply
|
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Discussion
=> Ask Reuben
=> WWDC21
-----------------------------
Discussions by product
-----------------------------
=> Products announcements
=> Genero BDL
=> GWS
=> GAS and GBC
=> GDC
=> Genero Mobile for Android or iOS
=> Genero Studio
=> Reporting tools (GRW, GRE)
-----------------------------
Jobs
-----------------------------
=> Jobs
Powered by SMF 1.1.21
|
SMF © 2015, Simple Machines
Loading...