erezlevi Posted October 10, 2009 Posted October 10, 2009 why can't I create a line inside a tab item? expandcollapse popup#include <File.au3> #include <Array.au3> #include <GUIconstants.au3> #include <String.au3> #include <FontConstants.au3> #include <GUIConstantsEx.au3> #include <GuiListView.au3> #include <ListViewConstants.au3> #include <StructureConstants.au3> #include <WinAPI.au3> #include <WindowsConstants.au3> $GUI = GUICreate("Percent Allocation", 500, 400, 30, 30) GUISetFont(11, 600) $tab = GUICtrlCreateTab(50, 20, 400, 310 ) $TAB1 = GUICtrlCreateTabItem("sun") $Line=GUICtrlCreateGraphic (90,90,100,15) $Line1=GUICtrlSetGraphic (-1,$GUI_GR_LINE,70,90) GUICtrlCreateLabel ("HOUR",80,70) GUICtrlCreateLabel ("skill-881",170,70) GUICtrlCreateLabel ("07:00-09:00",60,110) GUICtrlCreateLabel ("09:00-11:00",60,140) GUICtrlCreateLabel ("11:00-13:00",60,170) GUICtrlCreateLabel ("13:00-15:00",60,200) GUICtrlCreateLabel ("15:00-17:00",60,230) GUICtrlCreateLabel ("17:00-19:00",60,260) $TAB2 = GUICtrlCreateTabItem("mon") $Line=GUICtrlCreateGraphic (90,90,100,15) $Line1=GUICtrlSetGraphic (-1,$GUI_GR_LINE,70,90) GUICtrlCreateLabel ("HOUR",80,70) GUICtrlCreateLabel ("skill-881",170,70) GUICtrlCreateLabel ("07:00-09:00",60,110) GUICtrlCreateLabel ("09:00-11:00",60,140) GUICtrlCreateLabel ("11:00-13:00",60,170) GUICtrlCreateLabel ("13:00-15:00",60,200) GUICtrlCreateLabel ("15:00-17:00",60,230) GUICtrlCreateLabel ("17:00-19:00",60,260) $TAB3 = GUICtrlCreateTabItem("tue") $TAB4 = GUICtrlCreateTabItem("wed") $TAB5 = GUICtrlCreateTabItem("thu") $TAB6 = GUICtrlCreateTabItem("fri") $TAB7 = GUICtrlCreateTabItem("sat") GUICtrlCreateTabItem("") GUISetOnEvent($GUI_EVENT_CLOSE, '_exit') GUISetState() While 1 $tabbing=GUICtrlRead ($tab) ;MsgBox (0,"this is tabbing",$tabbing) sleep (4000) WEnd Func _exit() Exit EndFunc ;==>_exit
Zedna Posted October 10, 2009 Posted October 10, 2009 (edited) Use _WinAPI_DrawLine() or _WinAPI_LineTo() instead. It's part of latest Autoit beta version. Edited October 10, 2009 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
erezlevi Posted October 11, 2009 Author Posted October 11, 2009 Use _WinAPI_DrawLine() or _WinAPI_LineTo() instead. It's part of latest Autoit beta version.it doesn't work did you test it on the code? i've added it but it does nothing.
jebus495 Posted October 11, 2009 Posted October 11, 2009 it doesn't work did you test it on the code? i've added it but it does nothing.Look it up in the helpfile and learn how to use those functions. If you don't know what to do after that try starting with something more basic and build your knowledge that way. Scripting complicated things doesn't just happen.
erezlevi Posted October 11, 2009 Author Posted October 11, 2009 Look it up in the helpfile and learn how to use those functions. If you don't know what to do after that try starting with something more basic and build your knowledge that way. Scripting complicated things doesn't just happen.I am sorry, but I am with auto-IT for 3 years now. so if I post something it is usualy after reading help-file, reading auto-it Example scripts, searching in the forum and other.
Zedna Posted October 11, 2009 Posted October 11, 2009 it doesn't work did you test it on the code? i've added it but it does nothing.Post your code. Resources UDF ResourcesEx UDF AutoIt Forum Search
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