Sign in to follow this  
Followers 0
Xandy

Looking for GUI help

3 posts in this topic

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


I am not a lawyer.  (-_-) Xandy About  (^o^) Discord - Xandy Programmer

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0