Sign in to follow this  
Followers 0
PedroWarlock

Gui error?

1 post in this topic

#1 ·  Posted (edited)

I made a GUI and set an image background. When I change a value of a transparent label, sometimes the value blink showing the area of the label. Anyone know fix it? (sorry my english google translator)

i used sleep (100~), but the problem persists.

KccRo5M.gif9HBSuhs.gif

 

Ex:

#include <GUIConstants.au3>
#include <File.au3>
#include <GDIPlus.au3>


$posicion=1

$brgui=GUICreate("Test", 300, 200, -1, -1, BitOR ($WS_POPUP,$WS_BORDER))
GUISetFont (38, -1, -1, "arial")
$Background=GUICtrlCreatePic(@DesktopDir & "\background.jpg",0,0, 300,200)

;Label
$test_posicion=GUICtrlCreateLabel ($posicion,  100, 80, 100,60)

    GUICtrlSetColor ( -1, 0xffffff)
    GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
GUISetState ()




while 1
    $test=GUICtrlRead($test_posicion)
    GUICtrlSetData($test_posicion,$test+1)
    sleep(10)
    wend

ZxTqZ3b.jpg

Edited by PedroWarlock

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