View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0020719 | MMW 5 | General | public | 2024-03-13 19:05 | 2024-03-13 19:32 |
Reporter | zvezdan | Assigned To | |||
Priority | none | Severity | minor | Reproducibility | N/A |
Status | new | Resolution | open | ||
Summary | 0020719: New type of buttons are needed (Drop down, Split, Toggle) | ||||
Description | The descriptions about these buttons can be found on this Microsoft page: https://learn.microsoft.com/en-us/windows/apps/design/controls/buttons These buttons are like some kind of combination of a standard button and a menu button. 1. Drop down button: it is like your two view buttons in the toolbar, if they are joined together, with only difference that with the drop down button a click on the left part of button would not execute a command but will open a menu, just like a click on the right part of button. I suppose this can be added most easily, maybe it could be created already in an add-on with the existing buttons, but I think the problem is how to get the right part of the button with a down arrow to be more narrow, since the existing menu buttons are too wide; 2. Split button: it is like a drop down button, but with this one a click on the left part executes a command; 3. Toggle button: it is like your two view buttons in the toolbar, if they are joined together; it is similar to the split button, but a click on the left part toggles something (that could be used for the Play to button in player, as disused in 0020620). The let part of all these buttons could show a text (although you cannot see that on the screenshots on the mentioned MS page). And all these buttons have the right part with the down arrow much narrower than the existing MM5 menu button. The Split button is most needed to me, It is nice because it requires much less space than all command buttons that it could replace. I had a need for such kind of button in many of MM4 scripts including Magic Nodes and RegExp Find and Replace, but since MM4 didn't allow such buttons I used some dirty tricks with a standard button placed above a dropdown control. I have similar tricks in my Update Location add-on for MM5, but it looks a more nicely than that in MM4. However, even with MM5, its look depends on skins. With some skins the left part is looking differently that the right part, with a different color and/or height, not to mention that the distance between these two parts is hard to adjust to be uniform with all skins. Because of that, it would be nice if we could get such button generically in the program that will look consistent with all skins. Here is the relevant part of .html that I am using to create such split button: <div data-id="btnSelKeep" data-control-class="Button" style="margin-right: -2px">Show duplicates</div> <div data-id="cboSelKeep" data-control-class="MenuButton" class="menuButton grindEdge border" data-icon="downArrow" data-init-params="{oppositeX: true}"></div> | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Fixed in build | |||||