Jump to content
Sign in to follow this  
Achilles

Tab with picture problem

Recommended Posts

Achilles

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]

Share this post


Link to post
Share on other sites
Achilles

idk but it is under it

Yah, I updated the original post with a code that lets you see that better.

Also with the new code, you can view the tab titles and any tab items, however you can't see the main background.


My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.