Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Modal Dialog windows open on a MDI Container  (Read 7648 times)
Nuno G.
Posts: 38


« 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.
Four Js
Posts: 1080


« 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


« Reply #2 on: April 05, 2014, 05:36:54 pm »

Thanks Reuben
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines