I've got the feeling that I'm forgetting something simple for this, but I'm not sure what.
The following code changes my titlebar based on the information from the active channel. The problem is, I can't get the topic to scroll, like a marquee, or on a line by line basis (with each line being a calculated length).
Here's the code that I currently have
Code:
on *:active:#:{
  if $server {
    set %nick.count $nickcount($chan)
    set %chan.mode $chan($chan).mode
    set %topic $chan($chan).topic
    .timertitlebar 0 2 titlebar $channelbar($chan)
  }
}
alias -l channelbar {
  set %topic.display $iif(!%topic.display || %topic.display > $len(%topic),1,$calc(%topic.display + %topic.display.length))
  set %display.length $calc($len($me) + $len(%chan.mode) + $len(%nick.count))
  set %topic.display.length $calc(100 - %display.length)
  return $me %chan.mode %nick.count %topic
}
alias -l nickcount { return $+($nick($1,0,a,hvr) Ops,$chr(44),$nick($1,0,a,ovr) Half-ops,$chr(44),$nick($1,0,a,ohr) Voices,$chr(44),$nick($1,0,a,ohv) Regular) }

I realize that there's nothing currently in the code for a scrolling effect for the topic, but that's because the options that I've tried have not worked.