Sign in to follow this  
Followers 0
ichigo325

Unexpected Full Transparent GUI

1 post in this topic

;Right-click/ESC to exit
;Playing with AutoIt GUI

$mGui = GUICreate("Full Transparent GUI", 300, 300, -1, -1, 0x80000000)
GUISetBkColor(0xffffff, $mGui)
WinSetTrans($mGui, "", 160) 
GUICtrlCreatePic("", 0, 0, 181, 101, -1) ;test code

GUICtrlCreateLabel("wololo~", 5, 6, 300, 100,-1,0x00080000)
GUICtrlSetFont(-1, 48, 600, -1, "Lucida Handwriting", "CLEARTYPE_QUALITY=5")
GUICtrlSetBkColor(-1, -2)

GUICtrlCreateProgress(10, 80, 280, 20,-1)
GUICtrlSetData(-1,99.9)
GUICtrlSetState(-1,256)

GUICtrlCreateEdit(FileRead(FileOpen(@ScriptFullPath,0)),10,110,280,100,-1,0x00100000)
GUICtrlSetBkColor(-1,0xfffffe)

GUISetState()

While 1
    $Msg2 = GUIGetMsg()
    If $Msg2 = -9 Then Exit
WEnd

Can someone tell me why the GUI fully transparent after i added "GuiCtrlCreatePic"?


[size="2"][font="Lucida Sans Unicode"][b][/b][/font][/size]

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