Jump to content
Sign in to follow this  
vitor

Transparent GIF inside a Tab

Recommended Posts

vitor

Im trying to put a transparent GIF picture inside a tab content. I already follow the Exemple 2 from GUICtrlCreatePic and it worked fine, but I dont know how to set it up to a tab content.

Here is my code:

#include <GUIConstants.au3>
$gui=GUICreate("Gui test",600,300)
$tab_x=200
$tab_y=0
$tab=GUICtrlCreateTab ($tab_x,$tab_y, 400,300)
$tab1=GUICtrlCreateTabitem ("tab1")
$dl_pic=GUICtrlCreatePic ( "transparent.gif", $tab_x+2, $tab_y+30 ,0,0 )
$tab1=GUICtrlCreateTabitem ("tab2")
GUICtrlCreateTabitem ("")
GUISetState ()
While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
    if $msg = $tab then
    EndIf
Wend
Edited by vitor

Share this post


Link to post
Share on other sites
Emiel Wieldraaijer

This is the second time you've asked this question if i'm correct..

But i believe you want to do this

#include <GUIConstants.au3>
$gui=GUICreate("Gui test",600,300)
$tab_x=200
$tab_y=0
$tab=GUICtrlCreateTab ($tab_x,$tab_y, 400,300)

$tab1=GUICtrlCreateTabitem ("tab1")
$dl_pic1=GUICtrlCreatePic ( "transparent.gif", $tab_x+2, $tab_y+30 ,0,0 )
GUICtrlSetState($dl_pic1,$GUI_DISABLE)

$tab2=GUICtrlCreateTabitem ("tab2")
$dl_pic2=GUICtrlCreatePic ( "transparent.gif", $tab_x+2, $tab_y+30 ,0,0 )
GUICtrlSetState($dl_pic2,$GUI_DISABLE)

GUICtrlCreateTabitem ("")
GUISetState ()
While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
    if $msg = $tab then
    EndIf
Wend

Best regards,Emiel Wieldraaijer

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  

×