diff options
author | George Hazan <ghazan@miranda.im> | 2016-12-08 19:48:45 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2016-12-08 19:48:45 +0300 |
commit | 3b44da50baf9b321f040c5e5b5b0d7fb12ab7d5f (patch) | |
tree | 5a3e2e998a0e944e5314d0d8070143063cf00fab /plugins/Actman | |
parent | 615db90328ab27beb166c3db19a7a0326fb1345a (diff) |
fix for dynamically created toolbar icons in Actman
Diffstat (limited to 'plugins/Actman')
-rw-r--r-- | plugins/Actman/actman.dpr | 7 | ||||
-rw-r--r-- | plugins/Actman/ua/i_uavars.inc | 24 |
2 files changed, 19 insertions, 12 deletions
diff --git a/plugins/Actman/actman.dpr b/plugins/Actman/actman.dpr index bd2e759ccc..c54f7fbfef 100644 --- a/plugins/Actman/actman.dpr +++ b/plugins/Actman/actman.dpr @@ -180,6 +180,12 @@ begin end;
end;
+function DoAddButton(wParam:WPARAM;lParam:LPARAM):int;cdecl;
+begin
+ Srmm_AddButton(pBBButton(lParam));
+ result := 0;
+end;
+
function DoCallContactService(wParam:WPARAM;lParam:LPARAM):int;cdecl;
var
ccs:PCCSDATA;
@@ -241,6 +247,7 @@ begin CreateServiceFunction('Utils/OpenURL',@DoOpenUrl);
CreateServiceFunction('Proto/CallContactService', @DoCallContactService);
+ CreateServiceFunction('Actman/ButtonsBar/AddButton', @DoAddButton);
HookEvent(ME_SYSTEM_MODULESLOADED,@OnModulesLoaded);
end;
diff --git a/plugins/Actman/ua/i_uavars.inc b/plugins/Actman/ua/i_uavars.inc index ff4401a516..8ad6b45027 100644 --- a/plugins/Actman/ua/i_uavars.inc +++ b/plugins/Actman/ua/i_uavars.inc @@ -105,20 +105,20 @@ const NamesArray: array [0..NumTypes-1] of tNameRec = (
(name:'TopToolbar'; service:'TopToolBar/AddButton';
mask:UAF_REGTTBB ; atype:uaTTB; enable:false),
- (name:'TabSRMM toolbar' ; service:'TabSRMM/ButtonsBar/AddButton';
- mask:UAF_REGTABB ; atype:uaTAB; enable:false),
- (name:'Core Hotkey' ; service:nil{MS_HOTKEY_REGISTER};
+ (name:'TabSRMM toolbar'; service:'Actman/ButtonsBar/AddButton';
+ mask:UAF_REGTABB; atype:uaTAB; enable:false),
+ (name:'Core Hotkey'; service:nil;
mask:UAF_REGHOTKEY; atype:uaHotkey; enable:false),
- (name:'Main menu' ; service:nil;
- mask:0; atype:uaMenu+(ORD(main_menu ) shl 8); enable:false),
- (name:'Contact menu' ; service:nil;
+ (name:'Main menu'; service:nil;
+ mask:0; atype:uaMenu+(ORD(main_menu) shl 8); enable:false),
+ (name:'Contact menu'; service:nil;
mask:0; atype:uaMenu+(ORD(contact_menu) shl 8); enable:false),
- (name:'Tray menu' ; service:nil;
- mask:0; atype:uaMenu+(ORD(tray_menu ) shl 8); enable:false),
- (name:'Protocol menus' ; service:nil;
- mask:0; atype:uaMenu+(ORD(proto_menu ) shl 8); enable:false),
- (name:'Status menu' ; service:nil;
- mask:0; atype:uaMenu+(ORD(status_menu ) shl 8); enable:false)
+ (name:'Tray menu'; service:nil;
+ mask:0; atype:uaMenu+(ORD(tray_menu) shl 8); enable:false),
+ (name:'Protocol menus'; service:nil;
+ mask:0; atype:uaMenu+(ORD(proto_menu) shl 8); enable:false),
+ (name:'Status menu'; service:nil;
+ mask:0; atype:uaMenu+(ORD(status_menu) shl 8); enable:false)
);
var
|