Fink89 Posted May 6, 2018 Share Posted May 6, 2018 I want add column with ordinal number. But I search forum don't see it. Can anyone help me to add column in GUICtrlList ? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 6, 2018 Moderators Share Posted May 6, 2018 (edited) Fink89, You cannot have more than 1 column in a List control - at least not in the form you require it. You will need to use a ListView instead. M23 Edit: Seems I was wrong - see Zedna's post below. Edited May 7, 2018 by Melba23 Fink89 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...
Zedna Posted May 7, 2018 Share Posted May 7, 2018 You can have more columns in ListBox. You have to force $LBS_USETABSTOPS style and use @TAB as columns delimiter. Here is example: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <ListBoxConstants.au3> GUICreate("MultiColumn ListBox", 400, 300) GUICtrlCreateList("Col1" & @TAB & "Col2", 50, 50, 300, 200, BitOr($GUI_SS_DEFAULT_LIST, $LBS_USETABSTOPS)) GUICtrlSetData(-1, "Col11" & @TAB & "Col22") GUISetState() While GUIGetMsg() <> $GUI_EVENT_CLOSE WEnd Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 7, 2018 Moderators Share Posted May 7, 2018 Zedna, Thanks for that, I had no idea it was possible. M23 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...
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