Sign in to follow this  
Followers 0
k3v

ListView & Tab controls

3 posts in this topic

I have a tab control created with GUICtrlCreateTab.

I need a ListView, and originally tried using GUICtrlCreateListView... but I also need a way to delete all ListViewItems without knowing how many items there are... (they're created dynamically) so I used _GUICtrlListView_Create instead, so I could make use of _GUICtrlListView_DeleteAllItems.

Trouble is, while GUICtrlCreateListView will obey my tab control interaction, _GUICtrlListView_Create will not. So...

1) is there a way to delete all ListView Items (without knowing how many there are) in a ListView created with GUICreateListView?

or

2) how can I make a ListView created with _GUICtrlListView_Create coexist with, and respond to interaction with a tab control?

(caveat... the tab control is heavily in use so far, so if I can get away with it, I'd rather not have to recode it to be created with _GUICtrlTab_Create)

ver: 3.2.10.0

Thanks!

Share this post


Link to post
Share on other sites



with the latest you can use _GUICtrlListView_DeleteAllItems with the built-in control


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

Perfect!

Thanks GaryFrost!

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