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
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?
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?
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=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.
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.
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/