Sign in to follow this  
Followers 0
Ritzelrocker04

Bug_by_GUICtrlCreateGraphic ?

1 post in this topic

Select flickers! :)

Display flickers, the larger the space? :)

What can I do?

Graphic-Controls Anzeige flackert!

Bug_by_GUICtrlCreateGraphic ??

Anzeige flackert, je größer die Flächen ?

Was kann ich machen ?

Orginal

; Author: by ? => multiColor

#include<GUIConstants.au3>
#include<StaticConstants.au3>

Opt("GuiOnEventMode", 1)

$Progress = 0
$hGUI = GUICreate("Test", 400, 200)
GUISetOnEvent($GUI_EVENT_CLOSE, "_Quit")
$ctrlLabel = GuiCtrlCreateLabel("Progress:  0%", 10, 10, 380, 20, $SS_Center)
$ctrlProgBkgrnd = GUICtrlCreateGraphic(10, 40, 380, 80)
GUICtrlSetBkColor(-1, 0xFF0000) ; Red background
$ctrlProgress = GUICtrlCreateGraphic(10, 40, 1, 80)
GUICtrlSetBkColor(-1, 0xFF) ; Blue progress bar

GUISetState()

While 1
    ; Update progress
    Sleep(250)
    $Progress += 1
    If $Progress > 100 Then ExitLoop
    GUICtrlSetData($ctrlLabel, "Progress:  " & $Progress & "%")
    $iProg = ($Progress / 100) * 380
    GUICtrlSetPos($ctrlProgress, 10, 40, $iProg, 80)
WEnd

Sleep(1000)

Func _Quit()
    Exit
EndFunc

Danke

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