Jump to content

GUICtrlSetState doesn't work with progress bar


 Share

Recommended Posts

I have noticed that if GUICtrlSetState is used on a progress bar with $GUI_HIDE, the progress bar does not disappear. I have also noticed that when an avi is hidden, the last frame of the animation remains unless the object the avi is "on top of" is also hidden and reshown. Is this a bug?

Who else would I be?
Link to comment
Share on other sites

I have noticed that if GUICtrlSetState is used on a progress bar with $GUI_HIDE, the progress bar does not disappear. I have also noticed that when an avi is hidden, the last frame of the animation remains unless the object the avi is "on top of" is also hidden and reshown. Is this a bug?

<{POST_SNAPBACK}>

the progress control is not manage with GUICtrlSetState because the value is not a state but a data so you need to use GuiCtrlSetData.

for the .avi can you put a script and attach the avi file so I can see what you experience.

Link to comment
Share on other sites

I realise I can change the progress bar with GuiCtrlSetData, but I need it not to show when not needed. I need to HIDE the progress bar.

For the AVI, here is a simple example of the problem:

#include <guiconstants.au3>
$guihndl = GuiCreate("Testing", 395, 120, -1, -1, -1, 0x00000080)
$avi = GUICtrlCreateAvi("shell32.dll", 160, 0, 0, 185, 36, $ACS_AUTOPLAY)
GUISetState(@SW_SHOW)
Sleep(5000)
GUICtrlSetState($avi, $GUI_HIDE)
sleep(5000)

This code should show the gui, automatically play the avi, and wait 5 seconds before hiding the avi. As you will see, however, the last frame the AVI played is left on the screen. It doesn't look like the AVI is hidden like it should be, but just stopped.

Who else would I be?
Link to comment
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
 Share

  • Recently Browsing   0 members

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