mIRC Homepage
Posted By: ATMA blah toolbars - 20/05/03 09:28 PM
ok this bit of code is bugging me can someone help me with this i cant figure out how to get the icons to appear and stuff its annoying
=/
Code:
dialog example {
  title "Example"
  size -1 -1 1000 18
  option dbu
  list 1, 1 2 1000 14, size
}

on *:dialog:example:init:0:{
  dll $scriptdir $+ dll/mdx.dll SetMircVersion $version 
  dll $scriptdir $+ dll/mdx.dll MarkDialog $dname
  dll $scriptdir $+ dll/mdx.dll SetControlMDX $dname 1 ToolBar list arrows flat wrap nodivider > bars.mdx
  dll $scriptdir $+ dll/mdx.dll SetDialog $dname style
  dll $scriptdir $+ dll/mdx.dll SetBorderStyle 1
  did -i $dname 1 1 bmpsize 16 16
  did -i $dname 1 1 setimage icon small $scriptdir $+ icons/icon1.ico
  did -i $dname 1 1 setimage icon small $scriptdir $+ icons/icon2.ico
  did -a $dname 1 +a 1 Hello $chr(9) Tooltip!
  did -a $dname 1 +a 2 Goodbye $chr(9) Tooltip!
  dll $scriptdir $+ dll/ktools.dll DockToolbar $dialog($dname).hwnd
}

Posted By: MTech Re: blah toolbars - 21/05/03 03:15 AM
dialog example {
title "Example"
size -1 -1 1000 18
option dbu
list 1, 1 2 1000 14, size
}
on *:dialog:example:init:0:{
dll $scriptdir $+ dll/mdx.dll SetMircVersion $version
dll $scriptdir $+ dll/mdx.dll MarkDialog $dname
dll $scriptdir $+ dll/mdx.dll SetControlMDX $dname 1 ToolBar list arrows flat wrap nodivider > bars.mdx
dll $scriptdir $+ dll/mdx.dll SetDialog $dname style
dll $scriptdir $+ dll/mdx.dll SetBorderStyle 1
did -i $dname 1 1 bmpsize 16 16
did -i $dname 1 1 setimage icon small $scriptdir $+ icons/icon1.ico
did -i $dname 1 1 setimage icon small $scriptdir $+ icons/icon2.ico
did -a $dname 1 +a 1 Hello $chr(9) Tooltip!
did -a $dname 1 +a 2 Goodbye $chr(9) Tooltip!
dll $scriptdir $+ dll/ktools.dll DockToolbar $dialog($dname).hwnd
}

im not sure what your asking but that is the section to edit...
you could also use
did -i $dname 1 1 setimage icon small $scriptdiricons/icon1.ico
did -i $dname 1 1 setimage icon small $scriptdiricons/icon2.ico

might not make a difference, but maybe
did -i $dname 1 1 setimage icon small $scriptdiricons\icon1.ico
did -i $dname 1 1 setimage icon small $scriptdiricons\icon2.ico

maybe its wrong? im tired...its late...cant think straight
Posted By: ATMA Re: blah toolbars - 21/05/03 10:08 AM
hmmm it didnt change it in any way =/ it still looks the same im trying to get the icons to apear on the toolbar and its really starting to piss me off
Posted By: Online Re: blah toolbars - 21/05/03 12:07 PM
Just bars.mdx? I think you forgot the path ($scriptdirdll/bars.mdx).
© mIRC Discussion Forums