View Issue Details

IDProjectCategoryView StatusLast Update
0011494MMW v4Framework: Scripts/Extensionspublic2013-11-22 09:34
Reporterzvezdan Assigned To 
PrioritynoneSeverityminorReproducibilityalways
Status newResolutionopen 
Summary0011494: Toobar buttons that show dropdown sub-menu should have small arrow button on the right side
DescriptionToolbar buttons created with SDB.UI.AddMenuItemSub which show a dropdown sub-menu when clicked should have small arrow button on the right side like built-in buttons on View, Context and Navigation toolbars.

Also, such buttons should have a possibility to execute some script code as it is the case with the ordinary toolbar buttons created with SDB.UI.AddMenuItem when user clicks on the main part of the button with icon or caption (not on the arrow button). For example, if you click the icon of your button on the View toolbar you will toggle different views, but if you click on the arrow part of that button you will get the dropdown sub-menu with the list of views. Of course, it would be nice that such button could display the dropdown sub-menu even if user clicks on its main part with icon, like Send to and Tools buttons on the Context toolbar.

The current implementation of those two different actions is not consistent with the program. If we register event handler using:
    Script.RegisterEvent oTbarPresets, "OnClick", "RegExpExportImport"

then the click on the toolbar button causes display of the dialog box created by the specified function, without a possibility to get the dropdown sub-menu (because we don't have arrow part of button).

However, if we use:
    oTbarPresets.UseScript = Script.ScriptPath
    oTbarPresets.OnClickFunc = "RegExpExportImport"

then the click on the toolbar button causes a short display of the dropdown menu which disappears immediately and it is followed with the display of the dialog box created by specified function, again without any possibility to get that dropdown sub-menu.

If you add the suggested arrow button next to the buttons that are created with AddMenuItemSub then you could resolve this problem with two actions as well. In that case the registration of event handler with Script.RegisterEvent should stay unchanged, but you need to fix OnClickFunc property to have the same behavior as RegisterEvent, i.e. if OnClickFunc has assigned some function then that function would be executed when user click on the icon part of the button, but if OnClickFunc is empty then the click on the icon part of the button would display the dropdown sub-menu as with the click on the arrow part of the button.
TagsNo tags attached.
Fixed in build

Relationships

related to 0006728 newLudek Adding dropdown lists to some toolbar needed 
related to 0011493 new Ability to display toolbar button with both icon and caption 

Activities

There are no notes attached to this issue.