Sign in to follow this  
Followers 0
Proph

_GUICtrlListAddItem Doesn't exist anymore

10 posts in this topic

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. <_<

Share this post


Link to post
Share on other sites



Nevermind I got it. <_<

I had to use the new _GUICtrlListView_Create and _GUICtrlListView_InsertItem.

Share this post


Link to post
Share on other sites

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.

 

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 by Proph

Share this post


Link to post
Share on other sites

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.

 

Share this post


Link to post
Share on other sites

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. :)

Share this post


Link to post
Share on other sites

_GUICtrlListBox_AddString

Thanks!


[font="Lucida Console"]The truth is out there[/font]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0