Jump to content

Tabs without labels


Recommended Posts

Hi!

Is it possible to create tabs with GUICtrlCreateTab but without labels?

Icons would be used to navigate between tabs.

I managed to hide labels using this trick:

CODE
#include <GUIConstants.au3>

#include <TABConstants.au3>

$gui=GUICreate("GUI", 522, 348, -1, -1)

GUISetBkColor(0xffffff)

$p1 = GUICtrlCreatePic("ICONS\cleanup.bmp", 20, 70, 32, 32)

$tab = GUICtrlCreateTab(60, 20, 418, 350,$TCS_BOTTOM )

$tab0 = GUICtrlCreateTabItem(" ")

$tab1 = GUICtrlCreateTabItem(" 11")

$p2 = GUICtrlCreatePic("ICONS\dialafix.bmp", 80, 120, 32, 32)

GUICtrlSetCursor(-1, 0)

$tab2 = GUICtrlCreateTabItem(" ")

GUICtrlSetLimit ($tab1,1)

GUISetState()

Do

$msg = GUIGetMsg()

Select

Case $msg=$p1

GUICtrlSetState($tab1,$GUI_SHOW)

EndSelect

Until $msg = $GUI_EVENT_CLOSE

I believe there is a better way...

Any ideias?

Thx!

Edited by SoulBlade
Link to comment
Share on other sites

Try this. It allows you to draw the tab yourself. If you don't draw anything, nothing will be shown on the tab.

#include <TabConstants.au3>
GUICreate("Test", 500, 500)

GUICtrlCreateTab(16, 0, 409, 318, $TCS_OWNERDRAWFIXED)
GUICtrlCreateTabItem("")

GUISetState()

Sleep(5000)
Link to comment
Share on other sites

Try this. It allows you to draw the tab yourself. If you don't draw anything, nothing will be shown on the tab.

#include <TabConstants.au3>
GUICreate("Test", 500, 500)

GUICtrlCreateTab(16, 0, 409, 318, $TCS_OWNERDRAWFIXED)
GUICtrlCreateTabItem("")

GUISetState()

Sleep(5000)
Well,

GUICtrlCreateTabItem("") terminates the tab control.

Unfortunally it doesn't work.

Link to comment
Share on other sites

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