Listview Hide Row

Discuss GUI programming with the MUI Royale plugin here
Post Reply
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Listview Hide Row

Post 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.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Listview Hide Row

Post 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 :)
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: Listview Hide Row

Post 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
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Listview Hide Row

Post by airsoftsoftwair »

Alright, I've just implemented a new tag called Listview.Quiet which allows you to access this functionality.
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: Listview Hide Row

Post by djrikki »

Excellente!
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
Post Reply