ListView ContextMenu

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

ListView ContextMenu

Post by djrikki »

Hello,

I am hoping that this isn't a duplicate request or I have an inkling it could be, please accept my apologies in advance.

Please can you make it possible for us to disable/stop this Listview Context Menu from appearing.

Image

By no means a high priority enhancement, but nice all the same.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: ListView ContextMenu

Post by airsoftsoftwair »

I'll try to add this.
User avatar
tboeckel
Posts: 38
Joined: Fri Jun 06, 2014 6:17 am
Location: Germany

Re: ListView ContextMenu

Post by tboeckel »

What's wrong about the menu? The context menu is intentional and does always exist for the list's title object. For example the menu is the only way to make invisible column visible again, i.e. if you resized a column too small to become hidden.
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: ListView ContextMenu

Post by djrikki »

I am using hidden columns to store data inside the MUI structure that I don't necessary need the user to be able to see.

Fore instance, I may have a column with a filename in it, a second column with a category, and a third hidden column with an absolute URL to an online resource. The end user is not interested in the URL.

I am not asking for it to be removed altogether, but for the developer to be able to choose whether to enable it or not either at startup or during runtime.

Side comment: Its actually useful to have for debugging.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
tboeckel
Posts: 38
Joined: Fri Jun 06, 2014 6:17 am
Location: Germany

Re: ListView ContextMenu

Post by tboeckel »

I am using hidden columns to store data inside the MUI structure that I don't necessary need the user to be able to see.
MUI cannot know which data is considered private and which is public. Hence it shows everything that it is requested to show. And hidden columns are not meant to store private stuff, but only to hide information which currently not required to be visible, but which in general is public.

As I already said, hiding columns by resizing them to zero width is nothing special. But without the menu you won't be able to let them reappear. Users will hate you if you disable the menu and they have no way to get the (accidentally) hidden columns back again.
Fore instance, I may have a column with a filename in it, a second column with a category, and a third hidden column with an absolute URL to an online resource. The end user is not interested in the URL.
If the user is not interested in the URL then there should be no column for it in the list. If you are interested in the URL then you need a different approach to access it. Either by printing it to the shell or by setting a different MUIA_List_Format string which then includes the additional column containing the URL.
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: ListView ContextMenu

Post by djrikki »

The most ideal solution will be to implment Set()/Get() .userdata on ListView rows during runtime similar to the ListTree problem encountered here which Andreas said he would look further into implementing.

http://forums.hollywood-mal.com/viewtop ... f=21&t=961

That is the only reason why I have opted to use hidden column for 'private' data; lack of other options.

In response to your reply specifically, I can see now why the ContextMenu should not be hideable and retract that enhancement.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
Post Reply