Autor Beitrag
DiamondDog
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 460



BeitragVerfasst: Mi 04.06.08 17:48 
Hallo Leute hab ein Plugin für ein Programm so ähnlich wie ICQ
und da möchte ich jetzt das im Nachrichtenfester vom hauptprogramm ein Button ist,
der von meinem Plugin die Einstellungen öffnet.
Hab das hier auß nem andern Plugin nur weiß nicht wie ich da mein ico reinbekomme
und das es meine Plugin Optionen öffnet:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
procedure TQipPlugin.AddNeededBtns;
var PlugMsg : TPluginMessage;
    BtnInfo : TAddBtnInfo;
    Ico     : TIcon;
    sPath   : string;
    wAccName, wProtoName: WideString;
begin

  BtnInfo.BtnIcon := ffrmmain.icon.handle;
  BtnInfo.BtnPNG  := 0;
  BtnInfo.BtnHint := 'QIPGraffiti';
  PlugMsg.Msg       := PM_PLUGIN_ADD_BTN;
  PlugMsg.WParam    := LongInt(@BtnInfo);
  PlugMsg.DllHandle := FPluginInfo.DllHandle;
  FPluginSvc.OnPluginMessage(PlugMsg);
  FMyUniqBtn1 := PlugMsg.Result;
end;
DiamondDog Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 460



BeitragVerfasst: Fr 13.06.08 16:15 
Kann mir den hier bei niemand Helfen?
Hab echt keine Ahnung wie ich den Button ins Nachrichtenfenster bekomme.
Hab dazu nur die 3 Sachen hier:
ausblenden Delphi-Quelltext
1:
2:
3:
  PM_PLUGIN_CHAT_CAN_BTNS   = 40; //qip -> plugin, broadcasted to all plugins, core creates chat tab window and plugin can add buttons to middle panel, this message will be sent always on chat tab window creation. WParam is PWideChar of chat name, LParam is PWideChar of protocol name, NParam is dll handle of protocol, Result is PWideChar of tab caption of chat;
  PM_PLUGIN_CHAT_ADD_BTN    = 41; //plugin -> qip, WParam is pAddBtnInfo, core will return Result = Unique Action ID, which plugin will receive on every click on this btn, if Result will be returned  = 0 then btn was not added;
  PM_PLUGIN_CHAT_BTN_CLICK  = 42; //qip -> plugin, occurs when user clicked on your chat button in middle panel. WParam is Unique Action ID given by core on adding this btn, LParam is PWideChar of chat name, NParam is PWideChar of chat protocol name, Result is dll handle of protocol;
nur leider hab ich keine Ahnung wie ich da mit nen Button ins Nachrichtenfenster bekomme.