RogerL Posted April 4, 2008 Share Posted April 4, 2008 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. Link to comment Share on other sites More sharing options...
arcticflame Posted April 4, 2008 Share Posted April 4, 2008 GUICtrlCreateGraphic() Like so: #include <GUIConstantsEx.au3> #include <StaticConstants.au3> GUICreate("Horizontal Line",400,50) GUICtrlCreateGraphic(5,25,390,1,$SS_BLACKRECT) GUISetState(@SW_SHOW) While GUIGetMsg() <> $GUI_EVENT_CLOSE WEnd Link to comment Share on other sites More sharing options...
Zedna Posted April 4, 2008 Share Posted April 4, 2008 GUICtrlCreateLabel with $SS_SUNKEN styleLook here Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
RogerL Posted April 4, 2008 Author Share Posted April 4, 2008 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? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now