DjDeep00 Posted August 21, 2006 Share Posted August 21, 2006 How can we get the text of the column's name after it was clicked from a listview? Link to comment Share on other sites More sharing options...
Xenobiologist Posted August 21, 2006 Share Posted August 21, 2006 (edited) 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 August 21, 2006 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 More sharing options...
DjDeep00 Posted August 21, 2006 Author Share Posted August 21, 2006 Rite....Actually my column names are dynamic. I would like to get the column header text based on the index returned after clicking. Link to comment Share on other sites More sharing options...
Xenobiologist Posted August 21, 2006 Share Posted August 21, 2006 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 More sharing options...
DjDeep00 Posted August 22, 2006 Author Share Posted August 22, 2006 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,MegaYeah 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 More sharing options...
Tippex Posted December 18, 2018 Share Posted December 18, 2018 (edited) 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 December 18, 2018 by Tippex Skysnake 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now