Sign in to follow this  
Followers 0
SoulBlade

Tabs without labels

4 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
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)

[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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  
Followers 0