autoitVietNam Posted October 28, 2010 Share Posted October 28, 2010 With code #AutoIt3Wrapper_au3check_parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 #include <GuiConstantsEx.au3> #include <GuiTab.au3> #include <GuiImageList.au3> Opt('MustDeclareVars', 1) $Debug_TAB = False ; Check ClassName being passed to functions, set to True and use a handle to another control to see it work _Main() Func _Main() Local $aHit, $hTab ; Create GUI Local $GUI = GUICreate("Tab Control HitTest", 400, 300) $hTab = _GUICtrlTab_Create($GUI,2, 2, 400-10, 296,BitOR($TCS_VERTICAL,$TCS_FIXEDWIDTH,$TCS_SINGLELINE ),$TCS_EX_FLATSEPARATORS) GUISetState() _GUICtrlTab_InsertItem($hTab, 0, "",0) _GUICtrlTab_InsertItem($hTab, 1, "Tab 2") _GUICtrlTab_SetItemSize($hTab,60,30) _GUICtrlTab_InsertItem($hTab, 2, "Tab 3") _GUICtrlTab_InsertItem($hTab, 3, "Tab 4") ; Do a hit test ; Loop until user exits Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() EndFunc ;==>_Main It don't show text on The tab Button , Please help me , thanks all Link to comment Share on other sites More sharing options...
Zibit Posted October 28, 2010 Share Posted October 28, 2010 How is Show Text on _GUICtrlTab with Style is tab Left or Tab rightexplain. Creator Of Xtreme DevelopersPixel Pattern UDFTray GUI UDFMathssend & recive register scriptMouse Control via Webcam Link to comment Share on other sites More sharing options...
autoitVietNam Posted October 28, 2010 Author Share Posted October 28, 2010 With code on topic,it don't show text on Tab Button.So,How do show text on that ? Thanks You Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 28, 2010 Moderators Share Posted October 28, 2010 autoitVietNam, Running the code you posted I get the tab header text displaying without problem. Are you saying that you get blank tab headers when you run it? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
martin Posted October 28, 2010 Share Posted October 28, 2010 autoitVietNam,Running the code you posted I get the tab header text displaying without problem. Are you saying that you get blank tab headers when you run it? M23I'm sure that's what he means because I get blank tabs when I try it. The help say that the style is not supported if you use COMCTL32.DLL version 6 although I am using Version 5. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 28, 2010 Moderators Share Posted October 28, 2010 martin, I appear to have an even earlier version so no wonder it works for me. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
autoitVietNam Posted October 28, 2010 Author Share Posted October 28, 2010 (edited) yes,I get blank tab headers when I run it so,What do I do to show text in tab ? thanks everybody Edited October 28, 2010 by autoitVietNam Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 28, 2010 Moderators Share Posted October 28, 2010 autoitVietNam,It seems that if you have version 5 or higher of COMCTL32.DLL you cannot use that style. Sorry. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area 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