Quote
adodupanQuote
siria
And would love to have that menu checkmark bug fixed also for macro-created buttons and for macro-fired popup-menus
This is second place where you comment on 'that bug', i'm not sure i understand it.
Give me your 'problematic' file.
If you open a menu via rebarmenu-plugin, the checkmarks are outdated.
For example the Privacy menu, the checkmarks that indicate what is blocked and what not.
If you toggle them, the action is executed, but the rebar-menu still shows the same checkmarks as before.
Only when opening the menu with right-click or via normal menu system or in KM74 with the plain menu on a button (1b), the checkmarks get refreshed.
-------------
A test in toolbars.cfg:
rebarmenu cfg test(16,16){
test rebarmenu 1a{
rebarmenu(&Privacy)|&Privacy
Test rebarmenu 1a: Toggle checkmarks / left command: rebarmenu(&Privacy)
hotlist.bmp[3]
}
test rebarmenu 1b{
&Privacy
Test rebarmenu 1b: Toggle checkmarks / left command: &Privacy (works in 74)
hotlist.bmp[3]
}
}
-----------------
And a test as macro:
rebarmenu_button2{
$_toolbar="rebarmenu macro test";
$_size="16,16";
pluginmsg(toolbars,"AddToolbar",$_toolbar.",".$_size);
#
$_buttonname="rebarmenu button 2a";
$_left_command = "rebarmenu(&Privacy)" ;
$_right_menu = "&Privacy" ;
$_tooltip = "Test rebarmenu 2a: Toggle checkmarks / MACRO-button: rebarmenu(&Privacy)" ;
$_icons = "hotlist.bmp[3]" ;
#
pluginmsg(toolbars,"AddButton",$_toolbar.",".$_buttonname.",".$_left_command.",".$_right_menu.",".$_tooltip.",".$_size.",".$_icons);
}
# shows up in Tools menu, right above normal Privacy menu:
rebarmenu_test{
macroinfo="Test rebarmenu 3: Toggle checkmarks";
plugin(rebarmenu,"&Privacy");
}
_rebarmenu_BuildMenu{
setmenu("PrivacySecurity",macro,"Test rebarmenu 3","rebarmenu_test",0);
}
#---------------
$OnInit=$OnInit."_rebarmenu_BuildMenu;";
$OnSetup=$OnSetup."rebarmenu_button2;";
$macroModules=$macroModules."rebarmenu_test;";
-----------------
Not sure if it's a problem if two buttons with the same command "rebarmenu(&Privacy)" are created in the same skin. Perhaps should be tested independantly. Perhaps that's also why amazingly the image-count starts with 1 instead of 0 in my test?! Oh well ;-)