mIRC Home    About    Download    Register    News    Help

Print Thread
#15705 17/03/03 01:46 AM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
how do i set an image as a background of the text bar and nicklist and not just a color?

#15706 17/03/03 02:47 AM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
MDX ...... only way i know of setting a background image in a nicklist ..... but u have to create another nicklist @window or dialog to do it


D3m0nnet.com
#15707 17/03/03 05:01 AM
Joined: Dec 2002
Posts: 417
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
Here is the commands to load bmp's into your back ground
I have used BLACK.BMP and a filename Replace the filename with the custom files you wish to use and keep them in your mirc dir unless you create a dir to keep them in. Then you need to edit the $Mircdir

Tool Bar
/background -l $mircdirblack.bmp
Switchbar
/background -h $mircdirblack.bmp
Main Background
/background -mt $mircdirblack.bmp




Intelligence: It's better to ask a stupid question, then to prove it by not asking....
#15708 17/03/03 05:03 AM
Joined: Dec 2002
Posts: 417
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
You can also right click on the switchbar and select Background\select then pick your own file




Intelligence: It's better to ask a stupid question, then to prove it by not asking....
#15709 17/03/03 07:54 PM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
Quote:
MDX ...... only way i know of setting a background image in a nicklist ..... but u have to create another nicklist @window or dialog to do it

do you have an example? i am trying to use nicklist.dll anyway but i cant get ahold of a example so i can learn from it

#15710 17/03/03 09:50 PM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
setbkg <attrib> [value]

Sets some aspect of the ListView background. <attrib> can be:

url Sets a background image. Can be a local file or a file from the web. Supports any image format Internet Explorer supports. (GIF, JPG, BMP, etc.) Also requires a layout name after url, which can be:

tile image is tiled
normal image is not tiled

color Sets the background color to the given RGB value. [value] can be default to use the default color.
none Removes the background image

Example:

//did -i myDlg 20 1 setbkg url tile http://www.foo.com/bkg.gif

taken directly from MDX helpfile


D3m0nnet.com
#15711 17/03/03 09:59 PM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
setbkg url tile images\color.png

just appers in the edit box.

Last edited by MTech; 17/03/03 10:10 PM.
#15712 17/03/03 10:57 PM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
did u set ur dialog to be an mdx dialog? that is what sound like the case ..... and do u even have MDX?


D3m0nnet.com
#15713 18/03/03 12:16 AM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
i tryed it with mdx after that postb but the bg just dont show up.

#15714 18/03/03 12:21 AM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
ok if that code doesnt work then ur doing one of two things ......

1 not using MDX.dll correctly ... by not loading it on init when ur dialog starts

2 not finding the correct path to dll for ur mdx dll ..... it took me a few hours to figure out the mdx at first but reading the helpfile a bit and seeing where it shows u how to do ur first mdx dialog helps alot ...... best thing i can say is to either have someone who understands how to use mdx do it for u ...... not likely to happen ... or read the help file over and over till it sinks in ...... it is a bit hard to understand at first ..... but once u figure out how to implement atleast one mdx function then u can implement them all


D3m0nnet.com
#15715 18/03/03 12:40 AM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
everything is in the right dir.
Code:
 alias mdx_fullpath { return $+(",C:\mIRC\mdx\mdx.dll,") }
alias mdx { dll $mdx_fullpath $1- }
alias mdxinit {
  dll $mdx_fullpath SetMircVersion $version
  dll $mdx_fullpath MarkDialog $dname
}
dialog nicklist {
  size -1 -1 105 251
  title "#Channel"
  list 1,1 0 104 250,extsel size
}
on *:dialog:nicklist:init:*:{
  mdxinit
  mdx SetControlMDX $dname 1 ListView report rowselect &gt; C:\mIRC\mdx\views.mdx
  did -i $dname 1 1 headerdims 98
  did -i $dname 1 1 headertext # = Users
  did -i $dname 1 1 setbkg url tile images\color.ico
}
alias nicklist dialog -ma nicklist nicklist 

#15716 18/03/03 12:49 AM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
try using something other than an ico ..... it should work with any jgp or gif or bmp cause on mine it worked fine using
did -i $dname 1 1 setbkg url normal c:\mirc\images\image.jpg


D3m0nnet.com
#15717 18/03/03 12:50 AM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
oh god...how retarded

i need to use C:\mirc\images\color.png
not just images\color.png.
mirc should already know its in the mirc dir.

thankx 4 ur time....

Last edited by MTech; 18/03/03 12:51 AM.
#15718 18/03/03 12:53 AM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
could use $mircdirimages\color.png


D3m0nnet.com

Link Copied to Clipboard