Could someone please advise how I do the following?
I have a main form called DlgMain.
I have a 2nd form called DlgAbout. This form is modal when presented.
How do I go about launching DlgAbout from DlgMain?
Assume I have a menu or toolbar option to do the launching - what I'm after is the snippet of code that says "Show DlgAbout".
I know this is simple stuff, however in PowerBasic I am used to setting up the WndProc etc and clearly that isn't necessary with FireFly.
Andrew
Try this from point you wish to launch DlgAbout in DlgMain
CALL DlgAbout_Show(hWndForm, %TRUE) 'hWndForm is the handle of DlgMain and %TRUE indicates modal
If DlgAbout was a modeless window and you needed it's handle it would be like this although you can use the system generated variable just as easy and use a CALL format instead.
LOCAL hDlgAbout AS DWORD
hDlgAbout = DlgAbout_Show(hWndForm, %FALSE) 'hWndForm is the handle of DlgMain and %FALSE indicates modeless
The help topic for this is located here...
Working with FireFly --> Handling Multiple Forms
Thanks George!
Andrew