mIRC Home    About    Download    Register    News    Help

Topic Options
#25256 - 20/05/03 10:28 PM blah toolbars
ATMA Offline
Fjord artisan

Registered: 10/12/02
Posts: 397
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
}

_________________________
Need amazing web design for low price: http://www.matrixn3t.net

Top
#25257 - 21/05/03 04:15 AM Re: blah toolbars
MTech Offline
Fjord artisan

Registered: 05/03/03
Posts: 437
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

Top
#25258 - 21/05/03 11:08 AM Re: blah toolbars
ATMA Offline
Fjord artisan

Registered: 10/12/02
Posts: 397
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
_________________________
Need amazing web design for low price: http://www.matrixn3t.net

Top
#25259 - 21/05/03 01:07 PM Re: blah toolbars
Online Offline
Hoopy frood

Registered: 09/12/02
Posts: 1922
Just bars.mdx? I think you forgot the path ($scriptdirdll/bars.mdx).

Top