Sign in to follow this  
Followers 0
_Chris_

GUI Refresh

4 posts in this topic

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

Share this post


Link to post
Share on other sites



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!

Share this post


Link to post
Share on other sites

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!

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
Sign in to follow this  
Followers 0