Proph Posted November 3, 2007 Posted November 3, 2007 In one of my scripts I use _GUICtrlListAddItem but in the latest beta it has been removed. Is there a new func that does this now? Because I have been going through the new list of GUI UDFs... but I can't seem to find anything.
GaryFrost Posted November 3, 2007 Posted November 3, 2007 _GUICtrlListBox_AddString SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Proph Posted November 3, 2007 Author Posted November 3, 2007 Nevermind I got it. I had to use the new _GUICtrlListView_Create and _GUICtrlListView_InsertItem.
Achilles Posted November 3, 2007 Posted November 3, 2007 You do realize that listviews and listboxes are different things, right? My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
GaryFrost Posted November 3, 2007 Posted November 3, 2007 You do realize that listviews and listboxes are different things, right?That's why I renamed the GUICtrlList functions to GUICtrlListBox, got tired of people getting mixed up on those. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Proph Posted November 4, 2007 Author Posted November 4, 2007 (edited) I'm not sure what you mean by the listbox. Maybe I am using these wrong? I was using them to show a log. Basically I am using it something like this: $ScanMenu[0] = GUICreate($servicename & " " & FileGetVersion(@ScriptFullPath), 300, 300, -1, -1, $WS_OVERLAPPEDWINDOW) $ScanMenu[1] = _GUICtrlListView_Create($ScanMenu[0], "", 5, 25, 290, 175, $LVS_LIST) Then periodically through my script I use: _GUICtrlListView_InsertItem ( $ScanMenu[1], 'Text to add to the log window', 0 ) That's the long story short version of my code. What are the differeces between a listbox and a listview? Edited November 4, 2007 by Proph
GaryFrost Posted November 4, 2007 Posted November 4, 2007 I'm not sure what you mean by the listbox. Maybe I am using these wrong? I was using them to show a log. Basically I am using it something like this: $ScanMenu[0] = GUICreate($servicename & " " & FileGetVersion(@ScriptFullPath), 300, 300, -1, -1, $WS_OVERLAPPEDWINDOW) $ScanMenu[1] = _GUICtrlListView_Create($ScanMenu[0], "", 5, 25, 290, 175, $LVS_LIST) Then periodically through my script I use: _GUICtrlListView_InsertItem ( $ScanMenu[1], 'Text to add to the log window', 0 ) That's the long story short version of my code. What are the differeces between a listbox and a listview? Well you said _GUICtrlListAddItem Doesn't exist anymore _GUICtrlListxxxxxxx was the old function name format for Listbox, ListView has always started with _GUICtrlListView. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Achilles Posted November 4, 2007 Posted November 4, 2007 What are the differences between a listbox and a listview?The main difference I see is that ListViews can have columns... there are lots of other differences too... My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Proph Posted November 4, 2007 Author Posted November 4, 2007 Ok thanks for the explanations. I am sure they will be useful for others as well. If listviews can have columns then that is what I want. Because I was going to expand them into having columns at some point.
peppercorngiant Posted September 18, 2008 Posted September 18, 2008 _GUICtrlListBox_AddStringThanks! [font="Lucida Console"]The truth is out there[/font]
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