View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0012074 | MMW v4 | Framework: Scripts/Extensions | public | 2014-06-04 08:11 | 2014-06-06 01:58 |
Reporter | zvezdan | Assigned To | |||
Priority | urgent | Severity | minor | Reproducibility | always |
Status | assigned | Resolution | open | ||
Product Version | 4.1.2 | ||||
Target Version | 4.1.2 | ||||
Summary | 0012074: Cannot hide a button on custom toolbar permanently | ||||
Description | Since b1378 we have a possibility to create custom toolbars using ISDBUI::AddToolbar. However, buttons placed on such toolbars cannot be hidden permanently, i.e. after setting their Visible property to False such buttons are only temporarily hidden until some action in GUI e.g. after changing node in the tree. Buttons added to the built-in toolbars like Search or Shortcuts don't have such problem. Here is the test script: Option Explicit Sub OnStartUp() Dim oMenuItem Set oMenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Edit, 0, 0) oMenuItem.Caption = "Show/hide toolbar button" oMenuItem.OnClickFunc = "Test" oMenuItem.UseScript = Script.ScriptPath Set SDB.Objects("MyToolbar") = SDB.UI.AddToolbar("Test Toolbar") Set SDB.Objects("tbrTest") = SDB.UI.AddMenuItem(SDB.Objects("MyToolbar"), 0, 0) SDB.Objects("tbrTest").Caption = "Test" End Sub Sub Test(oMenuItem) SDB.Objects("tbrTest").Visible = Not SDB.Objects("tbrTest").Visible End Sub | ||||
Steps To Reproduce | When you choose "Show/hide toolbar button" from the Edit menu the button on the "Test Toolbar" will be hidden. However, if you change node in the tree, or select some another file in the filelist, or just click the arrow button of the dropdown list on the Search toolbar (assuming that it is displayed), the "Test" button will appear again on the "Test Toolbar". | ||||
Tags | No tags attached. | ||||
Fixed in build | |||||