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: 742
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
make your own with a dialog?


http://MTec89Net.com
irc.freenode.net #MTec89Net
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,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
I don't think a dialog can deal with that.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
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).


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
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