AutoByte Posted 7 hours ago Share Posted 7 hours ago Hi, How do I add a white area and a horizontal line to a form? I can't find the controls. This is a gooey library GUI in Python. Link to comment Share on other sites More sharing options...
Solution argumentum Posted 7 hours ago Solution Share Posted 7 hours ago (edited) #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 Doesn't look that good in all dark mode: ( but no one has those for now ) Edited 6 hours ago by argumentum Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
argumentum Posted 6 hours ago Share Posted 6 hours ago #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. 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