Jump to content

regarding List Control SetData


Recommended Posts

hi gang,

As you know, if you add an item to the list control which is the same

as an existing item, the list control will (both) fail to add that item,

and will highlight the previous identical item.

I happen to be using the list control for debugging messages, a

situation where some of the debug messages are identical to some

previous debug messages -- and the characteristic of failing to

post the message plus highlighting some previous message is

defeating my purpose.

Two (er no, three) questions:

1. does autoit provide a means of "turning off" the behavior

mentioned above?

2. failing that, is there any other way (for example resetting the

style bits) that will cause autoit to leave my postings alone.

3. failing that, suppose I create my own listbox, using the

create window api call. Will autoit STILL do the search for an

identical item, or will autoit tend to ignore any "user created"

controls?

thanks in advance for any help, jw

Link to comment
Share on other sites

just in case anybody else is curious, the answer to my problem

was to use the:

"_GUICtrlListAddItem" function

found in the:

#Include <GuiList.au3> file

(part of the beta distribution).

The listadditem function does _not_ look for any duplicate item

among the previously posted items, as setdata does.

cheers, jw

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

  • Recently Browsing   0 members

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