Show/Hide a Form

Started by Ariel Benzakein, May 26, 2004, 10:51:08 AM

Previous topic - Next topic

Ariel Benzakein

Maybe this is a dumb question... but how do you show/hide a form with the Win API?

TechSupport

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.

Ariel Benzakein

Thanks - easier than I thought.