SoulBlade Posted June 9, 2009 Share Posted June 9, 2009 (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 June 9, 2009 by SoulBlade Link to comment Share on other sites More sharing options...
dantay9 Posted June 9, 2009 Share Posted June 9, 2009 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 More sharing options...
SoulBlade Posted June 9, 2009 Author Share Posted June 9, 2009 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 More sharing options...
Yashied Posted June 9, 2009 Share Posted June 9, 2009 #Include <TabConstants.au3> GUICreate('Test', 400, 300) $Tab = GUICtrlCreateTab(0, 0 - 22, 400, 300 + 22, $TCS_BUTTONS) GUICtrlCreateTabItem('1') GUICtrlCreateTabItem('2') GUISetState() Do Until GUIGetMsg() = -3 My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now