mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2006
Posts: 93
Babel fish
OP Offline
Babel fish
Joined: May 2006
Posts: 93
When I load the dialog I don't have the icon yet (i'll download it later)
so I create an "empty icon"
Code:
dialog test {
  title "test"
  size 50 500 254 128
  ...
  icon 11, 200 32 18 12
}
 

After I've download the icon I load it with did -g test 11 icon.gif but I don't know how can I set the noborder style.

I tried also icon 11, 200 32 18 12,noborder and icon 11, 200 32 18 12, ,noborder but they don't work (* /dialog: 'test' error loading icon 'noborder' and * /dialog: 'test' error loading icon '').

The only thing that work it's load a "fake" icon (icon 11, 200 32 18 12, fake.gif,noborder), hide it with did -h and replace it when download the right one.

I'm searching a better way to set the noborder style without use a fake icon, if it's possible while loading the dialog else with the did -g (or other) command(s).

Taggnostr.

Joined: Dec 2002
Posts: 417
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417

Try this code it works for me

Code:
   [color:red]  

dialog test {
  title "test"
  size 50 500 254 128
  option pixels
  icon 11, 181 30 40 42, C:\mirc\mirc.ico, 0, noborder
  button "Button", 1, 42 105 60 17, ok cancel
}

[/color] 




Intelligence: It's better to ask a stupid question, then to prove it by not asking....
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
The only thing that work it's load a "fake" icon (icon 11, 200 32 18 12, fake.gif,noborder), hide it with did -h and replace it when download the right one.

other than that use a 1 pixel file

Joined: May 2006
Posts: 93
Babel fish
OP Offline
Babel fish
Joined: May 2006
Posts: 93
Maybe I found something
Code:
dialog test {
  title "test"
  size 50 500 254 128
  icon 11, 220 32 25 30, mirc.exe, 15, noborder
}

The 15th icon in the mirc.exe file is trasparent, so i can use it like an "empty icon" grin
I've to test it with others versions of mIRC, I hope that it works.
Thanks for the idea.

Taggnostr


Link Copied to Clipboard