Another dialog question - 24/11/08 11:57 PM
If I have an icon item in a dialog, it looks something like or
Occasionally, especially while getting others to test the script, I will forget to include the picture files, which causes mIRC to generate an error, as the file is missing.
I was wondering if there was a way of doing something like
NOTE: I have tried this in the dialog, and it is not liked.
I realize that I could make multiple dialog layouts depending on if the picture exists or not, but if there's an alternative I haven't thought of, I'd appreciate hearing what it is.
Code:
icon Canada.ico, 0
Code:
icon 21, 535 60 64 64, RusselB.jpg, 0, noborder
Occasionally, especially while getting others to test the script, I will forget to include the picture files, which causes mIRC to generate an error, as the file is missing.
I was wondering if there was a way of doing something like
Code:
if $exists(Canada.ico) { icon Canada.ico, 0 }
NOTE: I have tried this in the dialog, and it is not liked.
I realize that I could make multiple dialog layouts depending on if the picture exists or not, but if there's an alternative I haven't thought of, I'd appreciate hearing what it is.