Jump to content

Quick Q!


S3T

Recommended Posts

now i have seen this done before...

 

i have a nicklist docked (right) but the list size is wrong..

how do i make the list size the same as the mirc when i maximise

 

like in webchatz.koach.com2

 

its like something like

 

size $window(@ $+ $1).hwnd

list 2, 1 0 151 646, $windows(@ $+ $1).hwnd

 

 

but am not sure :(

 

any ideas!?

Link to comment
Share on other sites

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 by Warrior124
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...