Jump to content

Horizontal Line Separator on GUI


Recommended Posts

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!

Link to comment
Share on other sites

#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


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

Link to comment
Share on other sites

Cool , but can you put one in a MsgBox ?

If you make your own MsgBox


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

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
Share on other sites

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

  • Moderators

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.

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