Project

General

Profile

On MSCROLL » History » Revision 4

Revision 3 (Per Amundsen, 02/24/2017 09:38 PM) → Revision 4/5 (Per Amundsen, 06/20/2017 10:48 AM)

_Added in 2.7_ 

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

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

 _See also [[/scrolltext]], [[$window]].mscrollpos, [[$window]].mscrollmax._ 

 *Parameters* 

 <level> - The [[User Access 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 == 1) { 
     echo -sg scrollbar for $active is at top 
   } 
   else if ($window($active).mscrollpos == $window($active).mscrollmax) { 
     echo -sg scrollbar for $active is at bottom 
   } 
 } 
 </pre>