Title: Modal Dialog windows open on a MDI Container Post by: Nuno G. 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.
Title: Re: Modal Dialog windows open on a MDI Container Post by: Reuben B. 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 Title: Re: Modal Dialog windows open on a MDI Container Post by: Nuno G. on April 05, 2014, 05:36:54 pm Thanks Reuben
|