Jump to content
Sign in to follow this  
xq1xq1xq1

Horizontal Line Separator on GUI

Recommended Posts

xq1xq1xq1

Is there any command (I have not found one yet) to put a horizontal dividing line on a GUI?

The only method I have found is to use: GuiCtrlCreateGroup("", 0, 410, 450, 2) which works but I am thinking there should be a better way.

Thanx alot!

Share this post


Link to post
Share on other sites
BigDod

#include <GUIConstants.au3>

$Form1 = GUICreate("Form1", 633, 454, 193, 115)
$Graphic1 = GUICtrlCreateGraphic(56, 136, 473, 9)
GUICtrlSetGraphic(-1,$GUI_GR_LINE,473,0)
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites
LIMITER

Cool , but can you put one in a MsgBox ?

Edited by LIMITER

Share this post


Link to post
Share on other sites
BigDod

Cool , but can you put one in a MsgBox ?

If you make your own MsgBox


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites
LIMITER

Well ... That's not what i was expecting :))

Share this post


Link to post
Share on other sites
SmOke_N

Well ... That's not what i was expecting :))

The answer is ... Yes you can... Might as well look up SetPixel, and get ready to learn how to use /AutoIt3ExecuteScript.

In other words, it's easier just to make your own GUI.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
Uriziel01

Sory for OffTop :)

The answer is ... Yes you can... Might as well look up SetPixel, and get ready to learn how to use /AutoIt3ExecuteScript.

In other words, it's easier just to make your own GUI.

or just use

MsgBox(0, "Test", "This box will time out in 10 seconds"&@CRLF&"---------------------------------------"&@CRLF&"And the second line;P"&@CRLF&"---------------------------------------"&@CRLF&"They ARE separated;)",10)

The look like separated, hehe ;)

Edited by Uriziel01

Share this post


Link to post
Share on other sites
xq1xq1xq1

Thanx everyone - works great!

How does one close an item on the Forum?

Share this post


Link to post
Share on other sites
SmOke_N

Thanx everyone - works great!

How does one close an item on the Forum?

We leave them open for others to learn and comment on. The only time a thread gets closed is when a Dev/Mod thinks it should be.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
xq1xq1xq1

We leave them open for others to learn and comment on. The only time a thread gets closed is when a Dev/Mod thinks it should be.

Cool

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.