Jump to content

Gui error?


Recommended Posts

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
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...