Jump to content

Tab with picture problem


Recommended Posts

In my actual script I have a nice background which is why this is bothering me... I don't get why you can't (from what I know) have a tab made on top of a picture...

#include <GUIConstants.au3>
Local $tab

GuiCreate('Problem!!!', 450, 100) 

GUICtrlCreatePic(@Systemdir & '\oobe\images\mslogo.jpg', 5, 5, 390, 90)
    GuiCtrlSetState(-1, $GUI_DISABLE) 
    
$button = GuiCtrlCreateButton('Make over', 400, 5, 45, 90)
    
    _Make()



GuiSetState()

While 1 
    Switch GuiGetMsg()
        Case $GUI_EVENT_CLOSE 
            Exit 
        Case $button 
            GuiCtrlDelete($tab) 
            _Make()
    EndSwitch
WEnd
        
Func _Make() 
    $tab = GUICtrlCreateTab (50,10, 200,60)

    GUICtrlCreateTabitem ('Tab 1')
        GuiCtrlCreateButton('Testing button', 70, 40, 80, 30)
    GUICtrlCreateTabitem ('Tab 2')
        GUICtrlSetState(-1,$GUI_SHOW)
        GuiCtrlCreateInput('Strang...', 80, 50, 100, 30)
    GuiCtrlSetState($tab, $GUI_ONTOP)
EndFunc

EDIT: Made the example more detailed

Edited by Piano_Man
My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
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...