Jump to content

Recommended Posts

Posted

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)
GUISetState(@SW_SHOW)

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.

Posted

Thanks guys, both these 'work' on my machine

GUICtrlCreateGraphic(5,25,390,2,$SS_SUNKEN)
GUICtrlCreateLabel("",5,25,390,2,$SS_SUNKEN)

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?

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...