picwin - 24/02/04 07:15 PM
Code:
alias drawnotify { if !$window(@notify) { window -dk0pz +b @notify 0 0 180 300 } drawrect -fr @notify $rgb(224,235,246) 1 0 0 180 20 drawrect -r @notify $rgb(109,109,109) 1 0 0 180 20 drawtext -r @notify $rgb(109,109,109) Bright 11 5 5 Notify List } menu @notify { sclick:{ if $inrect($mouse.x,$mouse.y,0,0,180,20) { hadd -m notify move 1 } } uclick:{ if $hget(notify,move) { .hfree notify } } mouse:{ if $hget(notify) { window @notify $calc($mouse.dx - $mouse.x) $calc($mouse.dy - $mouse.y) } } leave:{ if $hget(notify) { .hfree notify } } } on *:close:@notify:{ .hfree notify }
how could i make it so my mouse stays where it was in the "titlebar" before it moved?