Jump to content

Get Header Text from a Listview


DjDeep00
 Share

Recommended Posts

How can we get the text of the column's name after it was clicked from a listview?

Hi,

it is in the example of : GUICtrlCreateListView ()

I guess, when you know the number of the column clicked, you should know the name, cause you wrote it before.

So long,

Mega

Edited by th.meger

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

Hi,

if they are dynamic, you have to get them anywhere. What about storing them into an array, so you can check the index after getting the colum number.

I know, it is just a workaround, but maybe you can go with that.

So long,

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

Hi,

if they are dynamic, you have to get them anywhere. What about storing them into an array, so you can check the index after getting the colum number.

I know, it is just a workaround, but maybe you can go with that.

So long,

Mega

Yeah I know, that's what I am using but just wanted to know if there was already a UDF for it.

Thanks for your help.

Link to comment
Share on other sites

  • 12 years later...

OK ... I'm responding to an old thread but there's now an answer in case anyone is searching for it:

Local $sColumnHeaderText = ""
Local $aAttibutesOfColumn = _GUICtrlListView_GetColumn($hWnd, $iIndex)
If IsArray($aAttibutesOfColumn) Then
    $sColumnHeaderText = $aAttibutesOfColumn[5]
EndIf

 

Edited by Tippex
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...