Project

General

Profile

On MSCROLL » History » Revision 2

Revision 1 (Per Amundsen, 12/08/2016 03:19 AM) → Revision 2/5 (Per Amundsen, 12/08/2016 03:22 AM)

_Added in 2.7_ 

 *<notextile>on <level>:MSCROLL:<*#?=!@>:<commands></notextile>* 

 Triggers when a user scrolls the message buffer in a window. 

 _See also [[$window]].mscrollpos, [[$window]].mscrollmax._ [[$mscroll.pos]], [[$mscroll.max]]._ 

 *Parameters* 

 <level> - The level for the event to trigger. 
 <*#?=!@> - The [[Matchtarget]] to listen to. 
 <commands> - The commands to be performed when the event listener's criteria is met. 

 *Example* 

 <pre> 
 on *:mscroll:#:{ 
   if ($window($active).mscrollpos ($mscroll.pos == 1) { 
     echo -sg scrollbar for $active is at top 
   } 
   else if ($window($active).mscrollpos ($mscroll.pos == $window($active).mscrollmax) $mscroll.max) { 
     echo -sg scrollbar for $active is at bottom 
   } 
 } 
 </pre>