mIRC Home    About    Download    Register    News    Help

Print Thread
On open to custom/picture windows... Why ? #196552 18/03/08 07:14 PM
Joined: Aug 2003
Posts: 144
M
Miguel_A Offline OP
Vogon poet
OP Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
Hi ppl.

Is thery any particulary reason to make the on open evenīt donīt trigger when a custom/picture window are opened ??

I think such event like that will be handy like the init for the dialogs...

Thanks in advance

Last edited by Miguel_A; 18/03/08 07:15 PM.
Re: On open to custom/picture windows... Why ? [Re: Miguel_A] #196557 18/03/08 09:07 PM
Joined: Dec 2002
Posts: 503
B
Bekar Offline
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
Code wise, in order to open a @Window, you have to issue a /window command. So there's really no reason to have it trigger the ON OPEN event as well, as you already have code-control over when they open.

Re: On open to custom/picture windows... Why ? [Re: Miguel_A] #196561 18/03/08 10:07 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
Right. If you already have to type the command to create the window, what's the point in not having the code (or alias) right there with the /window command? Putting it into an on OPEN doesn't really do anything for you.


Invision Support
#Invision on irc.irchighway.net