mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2003
Posts: 5
E
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
E
Joined: Jun 2003
Posts: 5
I'm wondering since a while I mean almost 4 years, How can I change the Icon of the dialogs boxes?


www.EnMauricie.com created in whole by an mIrc Script I made.
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
if u meant that u want to change the icon inside the "icon" in your dialog you can use the -g switch, eg: /did -g DNAME ID FILENAME



Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
Nice site but you should make the width resizable. 800 x 600 should be what you aim for without a horizontal scrollbar. There's no written rule but it's sort of the 'done thing'.

Joined: Jun 2003
Posts: 5
E
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
E
Joined: Jun 2003
Posts: 5
I meant the icon on the titlebar of the dialog box


www.EnMauricie.com created in whole by an mIrc Script I made.
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
You need a DLL for that I think. Try mIRCustom.dll from http://mircscripts.org/archive.php?type=dll

Joined: Apr 2003
Posts: 210
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Apr 2003
Posts: 210
You can now specify your icon in the dialog table:

dialog [-l] name {
title "text"
icon filename, index
size x y w h
option type (dbu, pixels, notheme)

...

What I would like to know is, How do you have no dialog icon? This seemed possible for one or two versions, by specifying an invalid file for the icon, But now it doesn't seem to work.

Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
What I would like to know is, How do you have no dialog icon? This seemed possible for one or two versions, by specifying an invalid file for the icon, But now it doesn't seem to work.

You can use the icon #16 in $mircexe, which is transparent. It does the trick. I have no reason to believe that the transparent icon will be removed from the .exe in some future version, so I consider this pretty safe.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
in dialog studio it says tools at the top, click that, then click dialog properties, it says icon, browse for an icon(it has be a filetype of .ico) then click the selected icon and then it should be in titlebar smile


new username: tidy_trax
#31387 01/07/03 08:06 PM
Joined: Jun 2003
Posts: 5
E
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
E
Joined: Jun 2003
Posts: 5
Thank you.

That is exactly what I wanted to know. And you made me discovered dialog studio. It makes me save so much of time. Don't have to calculate positions all the time with it. I am very happy to work with it now.



www.EnMauricie.com created in whole by an mIrc Script I made.
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
dialog whatever {
  title "Whatever"
  size -1 -1 156 82
  option dbu
  icon Path\whatever.ico, 0
  button "Close", 6, 35 58 103 12, ok
}

Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
np smile


new username: tidy_trax

Link Copied to Clipboard