Page 1 of 1

Listview Hide Row

Posted: Sun May 18, 2014 2:26 pm
by djrikki
Hello,

Re-populating a listview with thousands of entries is time-consuming, .Rename helped edit a particular row, but in order to complete one of my projects I need a .Hide property for rows.
This is in order to implement a Search feature on a list-view. The quickest and optimised way to show matches would be to hide non-matches.

Re: Listview Hide Row

Posted: Sun May 18, 2014 11:28 pm
by airsoftsoftwair
You have to ask the MUI authors to implement row hiding first because currently it's not possible at all with MUI's list class :)

Re: Listview Hide Row

Posted: Tue May 20, 2014 9:10 am
by djrikki
Ok I raised a ticket at MUIDev and have received an alternative solution.

Code: Select all

set(list, MUIA_List_Quiet, TRUE);
DoMethod(list, MUIM_List_InsertSingle, "new entry", MUIV_List_Insert_Bottom);
set(list, MUIA_List_Quiet, FALSE);
Please look at List_Quiet it will enable us to toggle the refresh state associated with a listview gadget. When the property is TRUE the listview will now refresh when rows are added to the listview, when the property is FALSE the listview will refresh again when new rows are added.
When dealing with ListViews containing thousands of rows (like in my case) this will speed up performance as the user will not visually see each row appearing in the listview as it is populated.

https://muidev.de/ticket/32

Re: Listview Hide Row

Posted: Wed May 21, 2014 6:20 pm
by airsoftsoftwair
Alright, I've just implemented a new tag called Listview.Quiet which allows you to access this functionality.

Re: Listview Hide Row

Posted: Wed May 21, 2014 10:21 pm
by djrikki
Excellente!