Jump to content

Is it possible to click-and-sort SysLinks with GUIListViewSysLink UDF?


Recommended Posts

I have read up and use the GUIListViewSysLink UDF found in this link () and I am finding a way if it is possible to detect user clicks on column headers that would also sort SysLinks.

For instance, I have created a ListView with several ListViewItems added, except that the last column would be a SysLink as follows:

ListView:

$exampleList = GUICtrlCreateListView("Num |Object |Link", 30, 85, 640, 480, $LVS_REPORT, BitOR($LVS_EX_FULLROWSELECT, $WS_EX_CLIENTEDGE))

ListViewItems:

$exampleItem[$n] = GUICtrlCreateListViewItem($n & "|" & myGetFunction($n), $exampleList)
 
SysLink:
$exampleSysLink[$n] = _GUICtrlListView_SysLinkCreate($exampleList , "Linked item", 1, $n, 4)
 
After generating each SysLink to the ListView, I added a function to perform column resizing like this link ('?do=embed' frameborder='0' data-embedContent>>).
 
Issue now is clicking the column header would sort the items within the ListView/ListViewItems, except for the SysLinks. From what I see inside GUIListViewSysLink.au3, it seems that the function for _GUICtrlListView_SysLinkCreate() is making each link a topmost, overlapping Windows popup and not a native ListViewItem, meaning that there should be a way to detect user clicks for column headers.
 
I consulted this link ('?do=embed' frameborder='0' data-embedContent>> - pay special attention to  _WM_NOTIFY) but was unable to print to the console on what column ID was selected.
 
Do I need to write a function within GUIListViewSysLink.au3 that does the sorting of the SysLinks when the user clicks a column header, or do I need to destroy all SysLinks and re-populate my ListView?
Another issue is that when the resizing is done, the SysLinks would appear overlapping over ListViewItems.
Scrolling left/right across the ListView would cause SysLinks to flicker as well.
 
What methods are available to overcome the issues mentioned?
Link to comment
Share on other sites

Bumping this thread.

At the meantime, I would avoid using the custom UDF for GUICtrlListViewSysLink, and instead place opening file links (as a workaround)  via a right-click > ContextMenu like the way this previous thread discussed:

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