mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2003
Posts: 98
T
twigboy Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Jan 2003
Posts: 98
is there any way to display a message/input box without mirc pausing until the ok/yes/no/etc button is pressed?

Joined: Jul 2003
Posts: 733
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jul 2003
Posts: 733
make your own with a dialog?

Joined: Jan 2003
Posts: 98
T
twigboy Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Jan 2003
Posts: 98
i've tried, and it kinda works
but i cant get the label to automatically resize itself in proportional sizes when given a certain length text

eg. try $input(hello)
and $input(qwertyuiopasdfghjklzxcvbnm)

the dimensions of the box would be different

Joined: Mar 2003
Posts: 1,256
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,256
I don't think a dialog can deal with that.

Joined: Jan 2003
Posts: 2,125
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,125
I didn't exactly understand what you want to resize (you said "label", that sounds like you want to resize the text control, but then you said "the dimensions of the box would be different", which implies the dialog), but in any case, if you want to resize the dialog itself, use /dialog -s. You can't resize the text control at runtime with plain mirc.

MDX makes all these easier/better, as it allows you to:
1) resize/move controls at runtime
2) retrieve the properties of the text control, like x y w h and fontname/fontsize, making it possible to use $width() for calculations (you need to get the width of text in order to properly resize the dialog).

Joined: Jan 2003
Posts: 98
T
twigboy Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Jan 2003
Posts: 98
thanks

i'll look into this a bit more


Link Copied to Clipboard