Jump to content

Lots of Q on ListBoxes


Recommended Posts

I have 3 questions (at least for the moment, I think I'll add more soon) about listboxes:

1. How can I make a tab's width smaller than the text it contains?

2. How can I use GUICtrlRead for a specific line in the listbox?

3. How can I get the number of lines in the listbox?

Thank you for your help! muttley

Link to comment
Share on other sites

I have 3 questions (at least for the moment, I think I'll add more soon) about listboxes:

1. How can I make a tab's width smaller than the text it contains?

2. How can I use GUICtrlRead for a specific line in the listbox?

3. How can I get the number of lines in the listbox?

Thank you for your help! muttley

Q3.
#Include <GuiListBox.au3>
_GUICtrlListBox_GetCount($hWnd)

When the words fail... music speaks.

Link to comment
Share on other sites

1. Maybe _GUICtrlListBox_SetColumnWidth() ??

2. _GUICtrlListBox_GetText()

3. _GUICtrlListBox_GetCount()

And you know what? All this is in the help-file!

Link to comment
Share on other sites

Thank you both!

1. Maybe _GUICtrlListBox_SetColumnWidth() ??

2. _GUICtrlListBox_GetText()

3. _GUICtrlListBox_GetCount()

And you know what? All this is in the help-file!

I've searched in the help-file after "GUICtrlCreateListView". There is nothing about the three functions there. How would I know they are called this way ? How would I find them if I don't know their names?

Edit: Of course everything is in the helpfile! But there are so many things in the helpfile so you'll never find what you're looking for by guess, if you don't know the name of the function.

Edit2: I was refering at listview soory :( They have such almost identical names :) . Anyway, now that I know about _GUICtrl[nameOfControl] _ [whatYourelookingFor] is much more easier for me to find what I'm intrested in.

Thank you guys! muttley

Edited by Kiti
Link to comment
Share on other sites

Thank you both!

I've searched in the help-file after "GUICtrlCreateListView". There is nothing about the three functions there. How would I know they are called this way ? How would I find them if I don't know their names?

Edit: Of course everything is in the helpfile! But there are so many things in the helpfile so you'll never find what you're looking for by guess, if you don't know the name of the function.

Edit2: I was refering at listview soory :P They have such almost identical names :( . Anyway, now that I know about _GUICtrl[nameOfControl] _ [whatYourelookingFor] is much more easier for me to find what I'm intrested in.

Thank you guys! :)

You're welcome Kiti! Nobody was born learned. muttley

When the words fail... music speaks.

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