IProjectMan:ToggleForm hide - does not work
Publicado: Mar Oct 19, 2021 7:16 am
Hi,
What is the correct way to hide the Form from the IDE?
That doesn't work (sometimes it only closes 1 form).
To test: I open 3 files (forms) in the Editor, display each Form in Designer, open a prg file (module) and leave it active: then run the code above.
To display Forms in Designer, it always works (...:ToggleForm(cPRGForm, .T.)), but I don't need it yet.
----------------------------------------
The various Forms opened in the designer disturb the IDE* windows, so I added an option in my plugin (View Forms) to hide all forms (without closing the Editor's PRG).
* This is another reason why I think it's important to have the IDE Xailer option to use only one window, like xEdit, Delphi ... Designer could be separated, as it is today. regards,
What is the correct way to hide the Form from the IDE?
That doesn't work (sometimes it only closes 1 form).
Código: Seleccionar todo
AEVAL( aFileForm, {|cPRG| ::IProjectMan:ToggleForm(cPRG, .F.) } ) // { 'C:\APPS\SOURCE\XXXX.PRG', ...}
To display Forms in Designer, it always works (...:ToggleForm(cPRGForm, .T.)), but I don't need it yet.
----------------------------------------
The various Forms opened in the designer disturb the IDE* windows, so I added an option in my plugin (View Forms) to hide all forms (without closing the Editor's PRG).
* This is another reason why I think it's important to have the IDE Xailer option to use only one window, like xEdit, Delphi ... Designer could be separated, as it is today. regards,