ileandros Posted February 17, 2012 Share Posted February 17, 2012 (edited) Hello everyone, I used to use a previous version and now i'm trying to use the latest one but i got lost. I cant make a simple listview. I used to make this way $List1 = GUICtrlCreateList("List View | List View1 | List View2") Now its a little bit different. I checked the help files but i want to know if there is an other way. Shall i just go back to the other vers i used to use??? Edited February 17, 2012 by ileandros I feel nothing.It feels great. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 17, 2012 Moderators Share Posted February 17, 2012 ileandros,You want a ListView - you are using GUICtrlCreateList.Try using GUICtrlCreateListView. 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...
Moderators JLogan3o13 Posted February 17, 2012 Moderators Share Posted February 17, 2012 (edited) ileandros, are you attempting to make a list control, or a ListView? Edit: @Melba Dang you type fast Edited February 17, 2012 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
ileandros Posted February 17, 2012 Author Share Posted February 17, 2012 Actually im trying to make a simple list with some list items inside but while trying to add some other list items via the old way i cant. I managed making a list with GuiCtrlCreateListView but i didnt like it bucause there was a seperate line in case i wanted to make another one i guess I feel nothing.It feels great. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 17, 2012 Moderators Share Posted February 17, 2012 ileandros, Perhaps if you posted some code we might be able to offer better advice - otherwise we are just guessing in the dark. 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...
ileandros Posted February 17, 2012 Author Share Posted February 17, 2012 Also is there a way to download the previous vers??? I got lost!!!!!!!!!!!!!!!!!!!!! I feel nothing.It feels great. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 17, 2012 Moderators Share Posted February 17, 2012 ileandros, Yes, you can get to the old version - but I am sure you will not need to. Just show us the code that you find no longer works. 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...
ileandros Posted February 17, 2012 Author Share Posted February 17, 2012 Look. This is how it was before. $List1 = GUICtrlCreateList("List View | And", 24, 24, 121, 84) This is now $List1 = GUICtrlCreateListView("List View", 24, 24, 121, 84) $item1 = GUICtrlCreateListViewItem("List 2", $List1) $item2 = GUICtrlCreateListViewItem("List 3", $List1) But i have to make an item every time i want to add one. Previous version i only had to add | List View2 I feel nothing.It feels great. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 17, 2012 Moderators Share Posted February 17, 2012 ileandros,You are mixing ListView and List controls - they are very different. Which do you actually want? 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...
ileandros Posted February 17, 2012 Author Share Posted February 17, 2012 Listview. You understand now why i want to go to previous version?? I feel nothing.It feels great. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 17, 2012 Moderators Share Posted February 17, 2012 ileandros,You understand now why i want to go to previous version??No, because ListViews work the same way under 3.3.8.1 as they did under 3.3.6.1. As I asked earlier, please post some running code with which you are having problems - we cannot offer sensible advice on the few snippets that you have offered so far. 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...
ileandros Posted February 17, 2012 Author Share Posted February 17, 2012 Well the correct name is ListBox. #include <GUIConstantsEx.au3> #include <GUIListBox.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 615, 438, 192, 124) $List1 = GUICtrlCreateList("List1", 136, 144, 353, 136) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd I feel nothing.It feels great. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 17, 2012 Moderators Share Posted February 17, 2012 ileandros,So after 12 posts we now know which type of control you want - a ListBox. But where is the code you use "while trying to add some other list items via the old way"? Please help us to help you. 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...
ileandros Posted February 17, 2012 Author Share Posted February 17, 2012 ahhaahahah. Look. If i add now $List1 = GUICtrlCreateList("List1 | List2 | List3", 136, 144, 353, 136) it just apears the one next to another. It used to appear the one under the other!!!!!!!!!!!!!!!!!!! I feel nothing.It feels great. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 17, 2012 Moderators Share Posted February 17, 2012 ileandros,You have always had to add the data after creating the ListBox if you wanted to put the items on separate lines - this is not a change with 3.3.8.0: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Form1", 615, 438, 192, 124) $List1 = GUICtrlCreateList("", 136, 144, 353, 136) GUICtrlSetData(-1, "List1|List2|List3") GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEndDoes that solve your problem? 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...
ileandros Posted February 17, 2012 Author Share Posted February 17, 2012 My stupid mistakeThe order i gave under $List1 was GuiCtrlSetState and not GuiCtrlSetData. I saw it now!!!!!!!!!!!Thanks I feel nothing.It feels great. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 17, 2012 Moderators Share Posted February 17, 2012 ileandros, Glad you got it working. 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