Jump to content

Recommended Posts

Posted

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

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
Posted

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.

 

Posted

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

  • 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
×
×
  • Create New...