DRIVEMAN calls the menu function that`s a TreeBox used as a popup menu.
I have it working nicely as two scripts but the menu GUI can`t refresh the DriveMan GUI.
With this arrangement I have to kill DriveMan and then run it again to force a refresh.
Now it`s working but the menu GUI will not refresh the DriveMan GUI in the same script.
I altered the code to try to get the "button-release-event" to trigger the clear and refresh.
Apparently GUIs in the same script can`t reference the others Variables. ( different shells? )
Maybe because the second GUI is being run in a function makes it a different shell.
gtkDialog2 had <action launchwindow> that ran another GUI without it being in a function. Edited_times_total
Joined: 08 Jun 2005 Posts: 5042 Location: Arizona, U.S.A.
Posted: Thu 08 Apr 2010, 06:09 Post_subject:
Script posted for the DriveMan GUI ( Above ). It shows the Menu, but doesn`t refresh...
It sure would be nice if a script could control and refresh a gtkDialog GUI that`s running.
Not to mention it`d be nice to change and refresh text and displayed icons on controls.
gtkdialog3 -ref DRIVEMAN # refresh ALL the controls on the DriveMan GUI
gtkdialog3 -ref DRIVEMAN DRIVES # refresh just the control with the Variable: DRIVES
gtkdialog3 -ref DRIVEMAN Exit # refresh the control text of the Label: Exit
It would be better if ALL controls had a "Name" to uniquely identify it ( like Visual Basic ).
Then like Visual Basic, you could assign ( set ) the property values for the control.