_Chris_ Posted August 25, 2006 Share Posted August 25, 2006 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 Link to comment Share on other sites More sharing options...
Uten Posted August 25, 2006 Share Posted August 25, 2006 ??? COuld you provide a simple sample? Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
_Chris_ Posted August 25, 2006 Author Share Posted August 25, 2006 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! Link to comment Share on other sites More sharing options...
_Chris_ Posted August 25, 2006 Author Share Posted August 25, 2006 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! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now