mIRC Home    About    Download    Register    News    Help

Print Thread
#19238 14/04/03 07:00 PM
Joined: Apr 2003
Posts: 3
Rynch Offline OP
Self-satisified door
OP Offline
Self-satisified door
Joined: Apr 2003
Posts: 3
How is it possible to change a labels caption in runtime when you press a button on the same dialog?

#19239 14/04/03 08:47 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
/did -a <dialogname> <id> <new text>


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#19240 15/04/03 10:03 AM
Joined: Feb 2003
Posts: 47
G
Ameglian cow
Offline
Ameglian cow
G
Joined: Feb 2003
Posts: 47
won't that only add text to the existing label?
if it does then delete it first with did -r <dialogname> <id>

or combine them
did -ra <dialogname> <id> <newtext>
(if that works, dunnow)

#19241 15/04/03 02:55 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
yes, combine r (clear) and a (add) to get "clear & add text" grin


-KingTomato
#19242 15/04/03 03:27 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
He said "label captions" and is probably referring to a "text control" in mirc. You don't need to clear the text in a text control (like you need to in editboxes).


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#19243 16/04/03 07:26 AM
Joined: Feb 2003
Posts: 47
G
Ameglian cow
Offline
Ameglian cow
G
Joined: Feb 2003
Posts: 47
ok then, my fault, i didn't know there was a difference between them.



Link Copied to Clipboard