Jump to content

_GUICtrlListAddItem Doesn't exist anymore


Proph
 Share

Recommended Posts

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

Link to comment
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.

 

Link to comment
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?

Edited by Proph
Link to comment
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.

 

Link to comment
Share on other sites

  • 10 months later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...