chkaotic Posted April 8, 2004 Share Posted April 8, 2004 Okay, I have read and searched and cant find anything on this. Does anyone know how to get the GUI progress bar to show up? Here's what I have: GuiCreate("Test", 400, 400, -1, -1) $TestBar = GuiSetControl("progress", "", 10, 10, 300, 20) GuiSetControlEx($TestBar, 50) GuiShow() WinActivate("Test") WinWaitClose("Test") Now if I do this: MsgBox(0,0, GuiRead($TestBar)) it returns "50", from the value i set in GuiSetControlEx, but I dont see the damn bar in my window anywhere. Any ideas? Anyone got this to work? Link to comment Share on other sites More sharing options...
Holger Posted April 8, 2004 Share Posted April 8, 2004 (edited) @chkaotic: If you use version "16" then you have this current problem. If you use version "15" then it should work. Or you wait until "jpm" has finished the new version 17, but I don't know what date it is. Temporary you could solve it like this: GuiCreate("Test", 400, 400, -1, -1) Global $WS_VISIBLE = 268435456 Global $WS_CHILD = 1073741824 $TestBar = GuiSetControl("progress", "", 10, 10, 300, 20,$WS_CHILD + $WS_VISIBLE,0) GuiSetControlEx($TestBar, 50) GuiShow() WinActivate("Test") WinWaitClose("Test") Regards Holger Edited April 8, 2004 by Holger Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Link to comment Share on other sites More sharing options...
chkaotic Posted April 9, 2004 Author Share Posted April 9, 2004 (edited) Thanks, I moved to v 15 and it worked. Going to make sure the rest of my code works in 15 and if so i'll just stick to it for now. Now i got another question: How do you Hide/Show a progress bar? Since $GUI_HIDE and $GUI_SHOW are states, and the state for a progress bar is how muc hits filled, is it possible to hide/show a progress bar? If not, is it possible to re-set the coordinates of an active control? Kinda like GuiSetCoord() but on a control that already exists? Hence I would create the progress bar and set it to coords that are off-screen, and when I want to "un-hide" it, id reset the coords again. Any thoughts? Edited April 9, 2004 by chkaotic Link to comment Share on other sites More sharing options...
chkaotic Posted April 10, 2004 Author Share Posted April 10, 2004 Cancel that, I found a way to do it by making a label that lies on top of the progress bars, and then hide/unhide that label. Link to comment Share on other sites More sharing options...
jpm Posted April 10, 2004 Share Posted April 10, 2004 Cancel that, I found a way to do it by making a label that lies on top of the progress bars, and then hide/unhide that label.Very good, 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