Jump to content
Sign in to follow this  

How do I draw a thin horizontal line

Recommended Posts

I want a simple window with two 'status' labels seperated by a thin line

$hWnd   = GUICreate ($program, 390, 94, -1, -1)
$label1 = GUICtrlCreateLabel ("Initialising", 12, 13, 380)
$group1 = GUICtrlCreateGroup ("", 4, 37, 378, 8)
$label2 = GUICtrlCreateLabel ("Reading INI file - " & $iniFile, 12, 60, 380)

By experimentation I found that a group box, with no text, of height 8 worked on my OS and screen resolution but doesn't on other machines. I had expected that maybe a group box with height 0 or 1 might work, but 0 thru 7 didn't but surprisingly 8 did. I realise that this can't be the right way to do it. Sorry if it's obvious, I've searched the help and the forums.

Share this post

Link to post
Share on other sites

Thanks guys, both these 'work' on my machine


From a purists point of view which is the right way of producing a thin, sunken horizontal line like Windows apps have above and below the menus?

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...