Jump to content

GUI help


 Share

Recommended Posts

why can't I create a line inside a tab item?

#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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

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