Jump to content
esullivan

Multiple GUIs

Recommended Posts

esullivan

I have search and have not had much luck figuring this out.  It's probably more complicated then I want but.

I am using KODA to create some GUIs, The first GUI will bring up 3 options (the third closing the script).  The first two, will open another form each.  Per KODA, after the form creation this is what I have:

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

         Case $cmdExit

         Case $Pic1
            
         Case $Pic2
            
    EndSwitch
WEnd

I figured out that under case is what happens when I click on what I define.  I can create a function that run code that creates the other forms I need.

The problem is once I close the form with DeleteGUI, it won't recreate it if I click on the button again to reopen the form.

I thought maybe I could hide it?  Not sure how to show it when the button is click,  GUISetState(@SW_SHOW) controls the current form not others...yes?

Thanks for any help!

Share this post


Link to post
Share on other sites
water

The wiki has a tutorial about how to handle multiple GUIs.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
esullivan

Thanks guys.

Sorry, I have decided to just do this in VB6.  Old, yes, but I know it better :)

Thanks for trying

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×