mIRC Home    About    Download    Register    News    Help

Print Thread
#150089 27/05/06 08:14 PM
Joined: May 2006
Posts: 2
C
cyras Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
C
Joined: May 2006
Posts: 2
I want to attach a dialog into toolbar somehow, like attaching @window with tbwin.dll . Is there some way to do this ? Or should i put a dialog into a @window somehow, and then attach @window with tbwin ? Please help ! Thank you. (Sorry for my english)

Joined: Nov 2005
Posts: 24
K
Ameglian cow
Offline
Ameglian cow
K
Joined: Nov 2005
Posts: 24
attach the dialog to the @window with windowfx.dll
and then attach the @window to the toolbar. However, I think it's much more worth making a new toolbar with DCX and docking it instead of the original one. Of course, it involves a bit more work. Still, good luck wink

Joined: May 2006
Posts: 122
J
Vogon poet
Offline
Vogon poet
J
Joined: May 2006
Posts: 122
I use a timer to hold my windows in the toolbar because I dont like to use dlls.
I have to windows @usage and @lag and use this code to find the toolbar position.
Code:
alias -l usagepos return $calc($window(-2).x + $window(-2).w - 270) $calc($window(-2).y + 50) 160 20
alias -l lagpos return $calc($window(-2).x + $window(-2).w - 100) $calc($window(-2).y + 50) 70 20

then I run a timered loop
Code:
alias winpos {
  if (!$appactive) {
    if ($window(@usage).ontop) {
      window -c @usage
      window -pdkh +dL @Usage $usagepos
      drawfill -nr @usage $rgb(face) $rgb(face) 0 0
      if ($server) drawtext -n @usage 4 tahoma 10 3 3 Usage: $usage
      drawtext @usage
    }
    if ($window(@lag).ontop) {
      window -ph @temp
      if ($server) drawcopy @lag 0 0 70 20 @temp 0 0
      window -c @lag
      window -pdkh +dL @Lag $lagpos
      drawfill -nr @lag $rgb(face) $rgb(face) 0 0
      if ($server) drawcopy -n @temp 0 0 70 20 @lag 0 0
      drawtext @lag
      window -c @temp
    }
  }
  else {
    window -o @usage
    window -o @lag
  }
  if ($window(@usage)) window @usage $usagepos
  if ($window(@lag)) window @lag $lagpos
  .timer.winpos -mo 1 200 winpos

Tada docked with out any dlls I will admit it a little slow when resizing and sometime likes to stay ontop when mirc isn't selected. But it does the job.


If only women came with popup menus and online help.

Link Copied to Clipboard