This code should make the given message scroll in a dialog editbox. It should be a good starting point for you.
alias mq.start {
;*** Call to start the scrolling
unset %mq.*
set %mq.point 0
.timer.mq -m 0 500 mq.disp
}
alias mq.disp {
;*** Scrolls one character for each call (chr(32) ignored)
var %mq.title = This is the text to scroll in the textbox
inc %mq.point 1
if (%mq.point > $len(%mq.title)) set %mq.point 1
if ($mid(%mq.title,%mq.point,1) == $chr(32)) inc %mq.point 1
var %mq.disp = $right(%mq.title,$calc($len(%mq.title) - %mq.point)) $left(%mq.title,%mq.point)
echo -a did -ra <id_of_textbox> %mq.disp
}
alias mq.stop {
unset %mq.*
.timer.mq off
}
-genius_at_work
Lo !
I found this code intresting so i tested it a bit, and i noticed one problem with it, if you add color to the text, then when it scrolling it will send the number for the color, not the color. Can someone explain to me why?
and how it can be solved a easy way