Allow2010 Posted December 27, 2011 Share Posted December 27, 2011 I would like to have a separation line like the on you can see to the right of the radiobuttons in the screenshot... can anyone tell me if this is possible with outoit and how? Thanks ! Link to comment Share on other sites More sharing options...
Country73 Posted December 27, 2011 Share Posted December 27, 2011 Believe you're looking for one of the following: GuiCtrlCreateGraphic() _GDIPlus_GraphicsDrawLine() If you try to fail and succeed which have you done?AutoIt Forum Search Link to comment Share on other sites More sharing options...
martin Posted December 27, 2011 Share Posted December 27, 2011 I think those things are easier to make with labels, and then you don't need to worry about refreshing the screen to redraw the lines. $gui = GUICreate("separators") $rad1 = GUICtrlCreateRadio("one", 20, 20) $rad2 = GUICtrlCreateRadio("two", 20, 40) $rad3 = GUICtrlCreateRadio("three", 20, 60) $rad4 = GUICtrlCreateRadio("four", 20, 80) addVerticalSeparator(80, 20, 80) GUISetState() While 1 If GUIGetMsg() = -3 Then Exit WEnd Func addVerticalSeparator($x, $y, $h) GUICtrlCreateLabel("", $x, $y, 1, $h) GUICtrlSetBkColor(-1, 0x999999) GUICtrlCreateLabel("", $x + 1, $y, 2, 1) GUICtrlSetBkColor(-1, 0x999999) GUICtrlCreateLabel("", $x + 1, $y + 1, 2, $h) GUICtrlSetBkColor(-1, 0xffffff) EndFunc ;==>addVerticalSeparator Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Country73 Posted December 27, 2011 Share Posted December 27, 2011 Haven't thought about that route; thanks for sharing! If you try to fail and succeed which have you done?AutoIt Forum Search Link to comment Share on other sites More sharing options...
GEOSoft Posted December 27, 2011 Share Posted December 27, 2011 Label is the easiest way. It seems to me I recall using either a 2 or 3 px wide label the few times I've done it. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
Allow2010 Posted December 27, 2011 Author Share Posted December 27, 2011 nice approach...thank you... Link to comment Share on other sites More sharing options...
Zedna Posted December 28, 2011 Share Posted December 28, 2011 GUICtrlCreateLabel + $SS_SUNKEN style. Search this forum for examples ... Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Allow2010 Posted December 28, 2011 Author Share Posted December 28, 2011 well i found some post about that, but i am still unsure how this can help here? Link to comment Share on other sites More sharing options...
Allow2010 Posted December 28, 2011 Author Share Posted December 28, 2011 Func addVerticalSeparator($x, $y, $h) GUICtrlCreateLabel("", $x, $y, 1, $h) GUICtrlSetBkColor(-1, 0x999999) GUICtrlCreateLabel("", $x + 1, $y, 2, 1) GUICtrlSetBkColor(-1, 0x999999) GUICtrlCreateLabel("", $x + 1, $y + 1, 2, $h) GUICtrlSetBkColor(-1, 0xffffff) EndFunc ;==>addVerticalSeparator Hmm...is it possible to do this in a vertival version too? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 28, 2011 Moderators Share Posted December 28, 2011 Allow2010, I do it this way: #include <GUIConstantsEx.au3> #include <StaticConstants.au3> $hGUI = GUICreate("Test", 500, 500) _AddVertSep(10, 10, 100) _AddHorzSep(10, 200, 200) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func _AddVertSep($iX, $iY, $iH) GUICtrlCreateLabel("", $iX, $iY, 1, $iH) GUICtrlSetBkColor(-1, 0x000000) EndFunc ;==>addVerticalSeparator Func _AddHorzSep($iX, $iY, $iW) GUICtrlCreateLabel("", $iX, $iY, $iW, 1) GUICtrlSetBkColor(-1, 0x000000) EndFunc M23 SupaNewb 1 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
martin Posted December 28, 2011 Share Posted December 28, 2011 ..Hmm...is it possible to do this in a vertival version too?That is vertical, I suppose you mean horizontal?It's just three labels as you can see. Two would possibly be enough but I added the small one across the top to make it look like the example in the first post.You simply need to make horizontal labels for a horizontal separator. The only thing you can't do with labels is diagonal lines. (Well I think MrCreatoR made an example for diagonal lines on the screen using hundreds of tiny windows so you could do that with labels.) Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Allow2010 Posted December 28, 2011 Author Share Posted December 28, 2011 yes i meant horizontal:-) Thanks you all, it now works the way i want it... 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