Sign in to follow this  
Followers 0
KillerSam

Tiny sub-boxes in a GUI.

6 posts in this topic

#1 ·  Posted (edited)

This is realy hard to explain but.

A lot of windows have faint lines usualy in an oval shape that link related items, it will place them into a "box", and there will usually be a title that will interupt the top line of this box.

I have attempted to add an image to show what I mean. You should be able to see the way the window is divided into sections, this is what I want.

Could somebody please give me a nudge in the right direction towards creating these?

Also there are like divisions and lines (commonly above "next and back" buttons on an install for example, or between text and an image on the left in install windows (commonly).

Hope I have explained enough.

Thanks,

Posted Image

Edited by KillerSam

Share this post


Link to post
Share on other sites



Ahh! Create group!

I would still like to know how to do lines though :)

Share this post


Link to post
Share on other sites

Maybe GUICtrlCreateLabel with style set to $SS_ETCHEDHORZ or $SS_ETCHEDVERT ?

Share this post


Link to post
Share on other sites

Label with style: $SS_SUNKEN and height 2 pixels

#include <GUIConstants.au3>

$Form1 = GUICreate("Form1", 633, 454, 193, 115)
$Label1 = GUICtrlCreateLabel("Label1", 72, 40, 347, 2, $SS_SUNKEN)
GUISetState(@SW_SHOW)

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

Share this post


Link to post
Share on other sites

Play with Koda

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("AForm1", 633, 447, 193, 115)
$Checkbox1 = GUICtrlCreateCheckbox("ACheckbox1", 40, 24, 17, 17)
$Input1 = GUICtrlCreateInput("AInput1", 40, 56, 113, 21)
$Group1 = GUICtrlCreateGroup("Nicknames", 16, 8, 417, 89)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

I was trying that yesterday, worked around with lots of ---------------- which is pretty stupid. Now I know the way to do it. :)

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  
Followers 0