Jump to content

How do I add a white area and a horizontal line to a form?


Go to solution Solved by argumentum,

Recommended Posts

  • Solution
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
Local $iW = 600, $iH = 200
$Form1 = GUICreate("Form1", $iW, $iH)
$Tab1 = GUICtrlCreateTab(0, 0, $iW, 100)
GUICtrlCreateTabItem("")
$Label1 = GUICtrlCreateLabel("Label1", 10, 150, $iW - 20, 1, -1, $WS_EX_STATICEDGE)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

    EndSwitch
WEnd

image.png.750072471ae28ad183e854f5858119d0.png

 

Doesn't look that good in all dark mode:
image.png.70609c12aabd848ed363fd04feccdddf.png

( but no one has those for now )

Edited by argumentum

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

image.png.7970bc4cd6d48a8ce071d25aa11d106b.png

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
Local $iW = 600, $iH = 200
$Form1 = GUICreate("Form1", $iW, $iH)
$Tab1 = GUICtrlCreateTab(-10, -10, $iW + 20, 100) ; over extend
GUICtrlCreateTabItem("")
$Label1 = GUICtrlCreateLabel("Label1", 10, 150, $iW - 20, 3, -1, $WS_EX_STATICEDGE) ; thicker separator ?
GUISetState(@SW_SHOW)
While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            GUIDelete()
            Exit
    EndSwitch
WEnd

...be creative.

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

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