PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Ariel Benzakein on May 26, 2004, 10:51:08 AM

Title: Show/Hide a Form
Post by: Ariel Benzakein on May 26, 2004, 10:51:08 AM
Maybe this is a dumb question... but how do you show/hide a form with the Win API?
Title: Show/Hide a Form
Post by: TechSupport on May 26, 2004, 11:05:17 AM
To show a Form in FireFly you should always use the application FORMNAME_Show function and the FF_CloseForm function.

For example,

FORM1_Show hParent, IsModal

hParent = The parent Form, if any.
IsModal = %TRUE if you want to display the Form as modal.

Use the FF_CloseForm function to close/hide a Form.

Example:
FF_CloseForm HWND_FORM1

In Win32 API you would normally use the ShowWindow function, however, in FireFly it is necessary to use the above functions because FireFly needs to do extra things when showing/hiding Forms.

In the upcoming 1.04 update, you will have the same commands available as you have in PB's DDT.
Title: Show/Hide a Form
Post by: Ariel Benzakein on May 28, 2004, 03:14:24 PM
Thanks - easier than I thought.