mIRC Home    About    Download    Register    News    Help

Print Thread
#217097 31/12/09 02:42 AM
Joined: Jan 2003
Posts: 27
S
SirUrza Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2003
Posts: 27


Is there a way to create a custom toolbar? And would like to put custom buttons from /toolbar onto a custom toolbar?

Last edited by SirUrza; 31/12/09 02:46 AM.
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
You can create your own toolbar image and load that and then use /toolbar to set the toolbar up to match the image. One image will contain all toolbar buttons including "dual" buttons (like the connect/disconnect button that has 2 images).


Invision Support
#Invision on irc.irchighway.net
Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
Actually that is for the old toolbar style.

Now /toolbar allows you to create your own buttons with their own functions. You may use any image of the proper file type for these buttons. You dont have to have one image for all buttons.

Joined: Mar 2008
Posts: 93
B
Babel fish
Offline
Babel fish
B
Joined: Mar 2008
Posts: 93
I think he wants to create a new toolbar and use buttons/functionality from the existing one.
DCX has Toolbar stuff, but i never tried it.

Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
Here is a toolbar I made when the /toolbar feature became available.




Here is the code that made it. This is usually on the start event. First you clear the toolbar and make your own buttons.

You give it a name, picture, alias (if you want the button to trigger an alias), and menu name. The alias in my example opened a popup window I made with popups.dll. I gave a regular menu example. You will need to replace the image paths with images of your own or it will not work.

Code:
on *:start:tb

alias tb {
;clear toolbar
 toolbar -c

;button one on top
 toolbar -a sf "SoulFly Options" SoulFly\imgs\sf.gif "/pop_ss" @ss
;divider
 toolbar -as ni
;button 2
  toolbar -a jo "Join Options" imgs\fav.ico "/sf_join" @rr
;button 3
 toolbar -a ax "Room Options" imgs\1x.ico "/pop_axis" @ax
;button 4, blank button
 toolbar -ak0z2 x2 "" imgs\o.ico "/kx"
button 5
 toolbar -a nk "Nick Options" imgs\nk.ico "/pop_nk" @pop_nick
;divider
  toolbar -as n2
button 6
  toolbar -a ch "Window List" imgs\w.ico "/chann" @ch
}

menu @rr {
Join:join $$?="enter channel name"
}

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Originally Posted By: DJ_Sol
Actually that is for the old toolbar style.

Now /toolbar allows you to create your own buttons with their own functions. You may use any image of the proper file type for these buttons. You dont have to have one image for all buttons.


Ah, right. I remember seeing that when it was changed, but I haven't done any toolbar stuff since, so forgot about it. Thanks for the reminder.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard