Jump to content

Transparent GIF inside a Tab


 Share

Recommended Posts

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
Link to comment
Share on other sites

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

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