[BUG REPORT]TMainmenu works unexpectedly in radio mode, include Win/Linux lazarus / 1-Linux ---------------------------------------------------------------------- gasensor · 2024-06-20 06:41 TMainmenu works unexpectedly in radio mode, include Win/Linux Menuitem's RadioItem attribute set to True. If the icon is set, the Menuitem cannot be displayed whether it is selected or not under all OS. In Win10, menu items cannot be in radio mode even if the icon is not set Test environment: lazarus: 2.2.6 / 3.4 Now I have a deep understanding of why cross-platform applications written in Lazarus have such strange interfaces. ---------------------------------------------------------------------- paweld · 2024-06-20 12:07 1. Report bugs here: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues 2. Quote from: gasensorIf the icon is set, the Menuitem cannot be displayed whether it is selected or not under all OS.if you set the icon for item, it is normal that you will not see the radio selection - the icon covers 3. Quote from: gasensorIn Win10, menu items cannot be in radio mode even if the icon is not setnone of the menu items you haven't set as "Checked" - that's why the check mark is not visible. In addition, I recommend setting "AutoChecked" to "True" so that the selection changes automatically when you click on the menuitem. ---------------------------------------------------------------------- TRon · 2024-06-20 12:30 Just keep in mind the LCL internals and things that never wil be fixed along with the current widget development status and the roadmap as there is no use in trying to beat a dead horse. On top of that note that it is possible some of the encountered issue might already be present in the issue tracker. Other than that a bug is a bug ---------------------------------------------------------------------- gasensor · 2024-06-20 20:24 Quote1. Report bugs here: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues Ok, I'll submit it later https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40996 Quoteif you set the icon for item, it is normal that you will not see the radio selection - the icon covers Actually, the MainItem is indicated by adding a color box to indicate that it is selected if there is an ICON in the case Quotenone of the menu items you haven't set as "Checked" - that's why the check mark is not visible. In addition, I recommend setting "AutoChecked" to "True" so that the selection changes automatically when you click on the menuitem. I tried. If "AutoChecked" and "Checked" are set to true, it will work fine on Windows, but you need to repeat the operation twice to change the menuitem on Linux. It's a sad story. ---------------------------------------------------------------------- MarkMLl · 2024-06-20 21:10 Quote from: gasensor on June 20, 2024, 10:24:53 pmQuote1. Report bugs here: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues Ok, I'll submit it later Seriously: I'd suggest not marking forum posting subject lines like that. It's all very well mentioning something here and, unless somebody presents a convincing argument that you're mistaken, then raising a formal bug report. It's all very well annotating that kind of posting with e.g. "(is this a bug?)". But simply raising something here will not get you the kind of kudos that a well-presented bug report will, particularly if you can also make coherent suggestions as to how something can be improved. In addition, people who get here via a Google search might be misled by a [BUG REPORT] tag into thinking that a problem is being worked on so they need not raise it themselves, when that is not in fact the case. MarkMLl ---------------------------------------------------------------------- gasensor · 2024-06-20 22:00 @MarkMLl Is the "formal bug report" a bit harder for users? "kudos"? I only care if it solves the problem. ---------------------------------------------------------------------- dsiders · 2024-06-20 22:39 Don't feed the troll. ---------------------------------------------------------------------- MarkMLl · 2024-06-21 06:07 Quote from: gasensor on June 21, 2024, 12:00:23 amIs the "formal bug report" a bit harder for users? Yes, but gives the developers some chance of managing the project. MarkMLl