hadd smarticq state upscroll | _icq.drw_obj -show upscroll down
_icq.scroll_up
.timer_icq.scrollup -mo 0 50 _icq.scroll_up
}
if ($_icq.i(settbutton)) { hadd smarticq state settbutton | _icq.drw_obj -hide icqbutton up sett | _icq.drw_obj -show settbutton down }
if ($_icq.i(statusbar)) {
_icq.menu_sb $mouse.x $mouse.y
}
_icq.debug -st x: $mouse.x y $mouse.y
}
alias _icq.event.uclick {
hadd smarticq idle 0
if ($hget(smarticq,state) == minibutton) && ($_icq.i(minibutton) == $false) { _icq.drw_obj -show minibutton up }
if ($hget(smarticq,state) == minibutton) && ($_icq.i(minibutton)) {
_icq.drw_obj -show minibutton up | window -n @SmartICQ
if (!$window(@smarticq).mdi) && ($readini($+(",$_icq.dir,$_icq.a,\settings.ini"),settings,contactlist_systray)) { window -h @smarticq }
.signal smarticq.minimized
}
if ($hget(smarticq,state) == scrollbar) && ($_icq.i(scrollbar) == $false) { hadd smarticq state normal | _icq.drw_obj -show scrollbar up }
if ($hget(smarticq,state) == scrollbar) && ($_icq.i(scrollbar)) { hadd smarticq state normal | _icq.drw_obj -show scrollbar up }
if ($hget(smarticq,state) == closebutton) && ($_icq.i(closebutton) == $false) { _icq.drw_obj -show closebutton up }
if ($hget(smarticq,state) == closebutton) && ($_icq.i(closebutton)) { _icq.drw_obj -show closebutton up | _icq.shutdown | return }
if ($hget(smarticq,state) == icqbutton) && ($_icq.i(icqbutton2) == $false) { _icq.drw_obj -show icqbutton up }
; if ($hget(smarticq,state) == icqbutton) && ($_icq.i(icqbutton2)) { _icq.drw_obj -show icqbutton up }
if ($hget(smarticq,state) == downscroll) && ($_icq.i(downscroll) == $false) { _icq.drw_obj -show downscroll up | .timer_icq.scrolldown off }
if ($hget(smarticq,state) == downscroll) && ($_icq.i(downscroll)) { _icq.drw_obj -show downscroll up | .timer_icq.scrolldown off }
if ($hget(smarticq,state) == upscroll) && ($_icq.i(upscroll) == $false) { _icq.drw_obj -show upscroll up | .timer_icq.scrollup off }
if ($hget(smarticq,state) == upscroll) && ($_icq.i(upscroll)) { _icq.drw_obj -show upscroll up | .timer_icq.scrollup off }
if ($hget(smarticq,state) == settbutton) && ($_icq.i(settbutton) == $false) { _icq.drw_obj -hide icqbutton up sett | _icq.drw_obj -show settbutton up }
if ($hget(smarticq,state) == settbutton) && ($_icq.i(settbutton)) {
if ($_icq.move_scrollbar.rev($mouse.y) < 1) { var %y = 1 }
else { var %y = $_icq.move_scrollbar.rev($mouse.y) }
hadd smarticq scroll %y
_icq.move_scrollbar -hide
_icq.drw_cl $hget(smarticq,sel)
hadd smarticq scrollbar.my $mouse.dy
}
return
}
if ($hget(smarticq,state) == minibutton) && ($_icq.i(minibutton) == $false) { hadd smarticq state minibutton | _icq.drw_obj -show minibutton up }
if ($hget(smarticq,state) == minibutton) && ($_icq.i(minibutton)) { hadd smarticq state minibutton | _icq.drw_obj -show minibutton down }
if ($hget(smarticq,state) == closebutton) && ($_icq.i(closebutton) == $false) { hadd smarticq state closebutton | _icq.drw_obj -show closebutton up }
if ($hget(smarticq,state) == closebutton) && ($_icq.i(closebutton)) { hadd smarticq state closebutton | _icq.drw_obj -show closebutton down }
if ($hget(smarticq,state) == icqbutton) && ($_icq.i(icqbutton2) == $false) { hadd smarticq state_ out | hadd smarticq state normal_ | _icq.drw_obj -show icqbutton up | _icq.systemtext }
if ($hget(smarticq,state) == icqbutton) && ($_icq.i(icqbutton2)) && ($hget(smarticq,state_) == out) { hadd smarticq state icqbutton | _icq.drw_obj -show icqbutton down }
if ($hget(smarticq,state) == downscroll) && ($_icq.i(downscroll) == $false) { hadd smarticq state downscroll | _icq.drw_obj -show downscroll up | .timer_icq.scrolldown off }
if ($hget(smarticq,state) == downscroll) && ($_icq.i(downscroll)) { hadd smarticq state downscroll | _icq.drw_obj -show downscroll down | _icq.scroll_down | .timer_icq.scrolldown -m 0 50 _icq.scroll_down }
if ($hget(smarticq,state) == upscroll) && ($_icq.i(upscroll) == $false) { hadd smarticq state upscroll | _icq.drw_obj -show upscroll up | .timer_icq.scrollup off }
if ($hget(smarticq,state) == upscroll) && ($_icq.i(upscroll)) { hadd smarticq state upscroll | _icq.drw_obj -show upscroll down | _icq.scroll_up | .timer_icq.scrollup -mo 0 50 _icq.scroll_up }
if ($hget(smarticq,state) == settbutton) && ($_icq.i(settbutton) == $false) { hadd smarticq state settbutton | _icq.drw_obj -hide icqbutton up sett | _icq.drw_obj -show settbutton up }
if ($hget(smarticq,state) == settbutton) && ($_icq.i(settbutton)) { hadd smarticq state settbutton | _icq.drw_obj -hide icqbutton up sett | _icq.drw_obj -show settbutton down }
if ($hget(smarticq,state) != statusbar) && ($_icq.i(statusbar)) { hadd smarticq state statusbar }
if ($hget(smarticq,state) == statusbar) && (!$_icq.i(statusbar)) { hadd smarticq state normal }
if ($hget(smarticq,state) == icqbutton) {
if ($1 == icqbutton) { _icq.drw_obj -show icqbutton down }