Jump to content

Recommended Posts

Posted

Hi i am making a multi page GUI using the gui switch to change between each gui. It all works fine but my second page has 6 buttons on it which show either installed on not installed depending on the status of that application. Its basically an installer shell. WHat i need to do is refresh that page after a function is run to update the status. please be aware i cant just delete the control and put a new one in its place for complicated reasons. It has to re create the form and re evaluate the if statments. thanks

Posted

its really very long!

;;; DATABASES START;;;

GUICtrlCreateLabel ("SecTT Databases", 225, 140, 200)

GUICtrlSetBkColor(-1,$GUI_BKCOLOR_TRANSPARENT)

GUICtrlSetFont (-1,9, 400, $font)

if FileExists("C:\MSDE2000a\Data_Folder\MSSQL$TT\Data\TTKS3BSQL.mdf") Then

GUICtrlCreateLabel ("Installed", 420, 140)

GUICtrlSetBkColor(-1,$GUI_BKCOLOR_TRANSPARENT)

GUICtrlSetColor(-1,0x00af33)

GUICtrlSetFont (-1,9, 400, $font)

Else

if FileExists("C:\MSDE2000a\Data_Folder\MSSQL$TT\Data\Master.mdf") Then

$DBA = GUICtrlCreateButton ("Install", 410, 137, 70,20)

GUICtrlSetBkColor(-1,$GUI_BKCOLOR_TRANSPARENT)

GUICtrlSetOnEvent($DBA, "DatabaseSetup")

EndIf

if NOT FileExists("C:\MSDE2000a\Data_Folder\MSSQL$TT\Data\Master.mdf") Then

$DB = GUICtrlCreateButton ("Install", 410, 137, 70,20)

GUICtrlSetBkColor(-1,$GUI_BKCOLOR_TRANSPARENT)

GUICtrlSetState(-1,$GUI_DISABLE)

EndIf

EndIf

;;; DATABASES END;;;

After the button is pressed it needs to run the installer program (which works), Update its status from the install button to show installed AND set other buttons status's to active!

Posted

Sorry forgot to mention that is like one tiny section of the code, their are all sorts of forms and 8 more functions and a ton of if statments!

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...