Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /storage/content/49/145849/famitracker.com/public_html/forum/classes/dbHandler.php on line 29 FamiTracker
Login:
Menu:
Post: Author:
FamiTracker > General > Bug Reports & Feature Requests > The menu detail of UI Interface Owner: womo New post
Page 1 of 1 Sort:  
The menu detail of UI Interface Posted: 2014-08-13 16:33 Reply | Quote
womo



Member for: 2888 days
Status: Offline

#60826
Some of the checkmark items in the menu should be radio items, for example, Tracker -> NTSC / PAL, and some other context menu in Edit Instrument dialog, because you can only choose one of them in the group.

I quite don't understand why people refuses radio menu item and uses checkmarks everywhere no matter whether the menu is single/multi-selectable. Not only Famitracker, I have seen many softwares did this. Is it difficult to change the menu to meet the Windows UI standard?

Posted: 2014-08-13 16:58 Reply | Quote
cpow

Avatar

Member for: 3638 days
Location: Minneapolis, MN, USA
Status: Offline

#60829
That's a *very* strange request. First of all, FamiTracker isn't the only package with this "problem", as you point out. Second of all, the radio-buttonness of a set of options in a menu is programmatically made obvious by the UI update handlers which make sure that only one of a group is checked at any time. I'm completely drawing a blank on *any* program that I've *ever* used that used radio buttons in a menu. It's not impossible, for sure. It's just...why bother?

Posted: 2014-08-13 19:25  (Last Edited: 2014-08-13 19:25) Reply | Quote
jsr
Administrator

Avatar

Member for: 5925 days
Location: Sweden
Status: Offline

#60844
I was going to say that only the checkbox option is offered by windows, but there actually seems to be a radio button option for menus as well. I haven't noticed that before.

_______________________
Programmer and developer
Posted: 2014-08-14 16:49 Reply | Quote
womo



Member for: 2888 days
Status: Offline

#60884
[quote=jsr]I was going to say that only the checkbox option is offered by windows, but there actually seems to be a radio button option for menus as well. I haven't noticed that before.[/quote]There are two kinds of item group in the menu of Windows.

If you can only choose one item in the item group, and the others are automatically deselected, the selected menu item is showed as a round dot on the left, which called radio item. When you can choose two or more, and they don't reject each other, the selected menu item is showed as a checkmark on the left, this is the most common checkmark item.

Such rules follows as checkbox group and radio button group. Menus in Windows OS itself are always in the standard. You can open any explorer (eg My Computer) and click View to see the selected radio items.

Actrually C++ has APIs to create menu like that, CheckMenuRadioItem(), SetRadio() and MF_RADIOCHECK can be used in MENUITEMINFO when InsertMenuItem(). Who knows why some programmers ignore them? I have seen code inside some open source software which has high level technology and critical programming skills that leaves me far behind on the road, however when they create a selection menu, they still manually iterates the items and use CheckMenuItem() to painstakingly check/uncheck them one by one with switch-case, they constantly do this even when the items group is over 10, 20 or more.

I found that SetRadio() looks quite ugly in Win7 for some reason, the black dot is not same with default theme. I changed to *pCmdUI -> m_pMenu -> CheckMenuRadioItem() and this looks fine on almost system.

Posted: 2014-08-14 19:17 Reply | Quote
jrlepage
Moderator

Avatar

Member for: 4983 days
Location: Canada
Status: Offline

#60929
I'm fairly sure jsr has a pretty good idea what a radio button is...

_______________________
Follow me on [url=https://twitter.com/jrlepage2a03]Twitter.
I record (some) NSFs on hardware. Feel free to [url=http://www.famitracker.com/forum/posts.php?id=3633]request a hardware render.
Posted: 2014-08-15 04:10 Reply | Quote
cpow

Avatar

Member for: 3638 days
Location: Minneapolis, MN, USA
Status: Offline

#60944
*upvote* ^^

Posted: 2014-08-18 18:19  (Last Edited: 2014-08-18 18:20) Reply | Quote
Stratelier



Member for: 2954 days
Status: Offline

#61043
Hmm, apparently Windows [i]does[/i] provide bullet icons for menus (see attached), I don't think I ever noticed that before.

I agree that it would be a neat thing to have (though I also agree that the current behavior isn't exactly a problem).

_______________________
Where to find me:
YouTube: [url=http://youtube.com/user/stratelier]http://youtube.com/user/stratelier
DeviantArt: [url=http://stratadrake.deviantart.com/]http://stratadrake.deviantart.com/
Attachments:
menuscheckboxradiooptions.png (18 Kb)
Page 1 of 1 Sort: