You'd have to set the width, and heigth coordinates to a variable instead of a preset value, such as
%nicksize. Then, you can use this code.
set %nicksize $dll(dlls\nicklist.dll,GetSize,$1-)
Here is a sample dialog.
alias ff {
if (!%ff. [ $+ [ $1- ] ]) || (!$exists(%ff. [ $+ [ $1- ] ])) set %ff. [ $+ [ $1- ] ] $longfn($findfile($nofile($mircexe),$1-,1))
return %ff. [ $+ [ $1- ] ]
}
dialog nick {
title ""
size 0 0 %nicksize
option pixels
list 1, 0 0 %nicksize, size
}
on *:JOIN:#: {
if ($nick == $me) {
set %nicksize $dll($ff(nicklist.dll),GetSize,$chan)
dialog -m nick $+ $chan nick
}
}
on *:dialog:nick*:init:*: {
dll $ff(mdx.dll) SetMircVersion $version
dll $ff(mdx.dll) MarkDialog $dname
dll $ff(mdx.dll) SetDialog $dname style
dll $ff(mdx.dll) SetControlMDX $dname 1 listview report showsel > $ff(views.mdx)
dll $ff(nicklist.dll) Nicklist $dname $right($dname,-4)
}
Edited Nov 25, 2007 5:30 PM by Warrior124
Travis
Historical / Guest
DCX's xdock kicks butt!!
It has a switch to dock a dialog to your nicklist. After that you can easily resize it if the nicklist gets resized.