Xandy Posted January 16, 2011 Share Posted January 16, 2011 I use guiCtrlCreateLable, Button, Input, and Group to separate data displayed on GUI. Can I draw lines without creating a group control, and without creating a graphic control? I looked through the help, the only way I found to draw lines was to create a graphic control or a group control. I just want to draw some bold lines on the GUI to make columns and rows. Thank you for your time Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker) Link to comment Share on other sites More sharing options...
JoHanatCent Posted January 16, 2011 Share Posted January 16, 2011 I use guiCtrlCreateLable, Button, Input, and Group to separate data displayed on GUI. Can I draw lines without creating a group control, and without creating a graphic control? With the available info .. .. .. Why not just playing with the Label style? #include <StaticConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $GUI = GUICreate("Example", 220, 200, -1, -1, $WS_POPUP) $sent1 = GUICtrlCreateLabel("1", 1, 90, 100, 30, $SS_CENTER, $WS_EX_DLGMODALFRAME) $sent2 = GUICtrlCreateLabel("2", 1, 120, 100, 30, $SS_CENTER, $WS_EX_DLGMODALFRAME) GUICtrlSetColor(-1, 0xff0000) $sent3 = GUICtrlCreateLabel("3", 1, 150, 100, 30, $SS_CENTER, $WS_EX_DLGMODALFRAME) $sent4 = GUICtrlCreateLabel("4", 100, 90, 100, 30, $SS_CENTER, $WS_EX_DLGMODALFRAME) $sent5 = GUICtrlCreateLabel("5", 100, 120, 100, 30, $SS_CENTER, $WS_EX_DLGMODALFRAME) $sent6 = GUICtrlCreateLabel("6", 100, 150, 100, 30, $SS_CENTER, $WS_EX_DLGMODALFRAME) GUISetState() Do $msg = GUIGetMsg() GUICtrlSetData($sent2, @SEC) Sleep(50) Until $msg = $GUI_EVENT_CLOSE Link to comment Share on other sites More sharing options...
Zedna Posted January 16, 2011 Share Posted January 16, 2011 SS_SUNKEN style makes desired line from label #include <StaticConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $GUI = GUICreate("Example", 400, 300) $sent1 = GUICtrlCreateLabel("", 100, 150, 200, 2, $SS_SUNKEN) GUISetState() Do $msg = GUIGetMsg() Until $msg = $GUI_EVENT_CLOSE Resources UDF ResourcesEx UDF AutoIt Forum Search 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