ButtonController.st
changeset 582 e151eeae2c9a
parent 417 3f48ca2beb7d
child 602 382d6e06cf1a
equal deleted inserted replaced
581:4d48caecf4a0 582:e151eeae2c9a
    44     access to the controllers behavior is possible via messages to the button.
    44     access to the controllers behavior is possible via messages to the button.
    45     (setting actions, controlling autorepeat etc.)
    45     (setting actions, controlling autorepeat etc.)
    46 
    46 
    47     See examples in the Button class.
    47     See examples in the Button class.
    48 
    48 
    49     Instance variables:
    49     [Instance variables:]
    50 
    50 
    51       enableChannel           <ValueHolder    pressing is allowed (default: true)
    51       enableChannel           <ValueHolder    pressing is allowed (default: true)
    52 			       on Boolean>    
    52                                on Boolean>    
    53 
    53 
    54       pressed                 <Boolean>       true if currently pressed (read-only)
    54       pressed                 <Boolean>       true if currently pressed (read-only)
    55 
    55 
    56       entered                 <Boolean>       true if the cursor is currently in this view
    56       entered                 <Boolean>       true if the cursor is currently in this view
    57 
    57 
    58       isTriggerOnDown         <Boolean>       controls if the action should be executed on
    58       isTriggerOnDown         <Boolean>       controls if the action should be executed on
    59 					      press or on release (default: on release).
    59                                               press or on release (default: on release).
    60 
    60 
    61       isToggle                <Boolean>       controls if the button should show toggle
    61       isToggle                <Boolean>       controls if the button should show toggle
    62 					      behavior (as opposed to one-shot behavior)
    62                                               behavior (as opposed to one-shot behavior)
    63 
    63 
    64       pressActionBlock        <Block>         block to evaluate when pressed (default: noop)
    64       pressActionBlock        <Block>         block to evaluate when pressed (default: noop)
    65 
    65 
    66       releaseActionBlock      <Block>         block to evaluate when released (default: noop)
    66       releaseActionBlock      <Block>         block to evaluate when released (default: noop)
    67 
    67 
    72       repeatDelay             <Number>        seconds of repeat intervall (default: 0.025)
    72       repeatDelay             <Number>        seconds of repeat intervall (default: 0.025)
    73 
    73 
    74       repeatBlock             <Block>         block evaluated for auto-repeat (internal)
    74       repeatBlock             <Block>         block evaluated for auto-repeat (internal)
    75 
    75 
    76       active                  <Boolean>       true during action evaluation (internal)
    76       active                  <Boolean>       true during action evaluation (internal)
       
    77 
       
    78     [author:]
       
    79         Claus Gittinger
    77 "
    80 "
    78 ! !
    81 ! !
    79 
    82 
    80 !ButtonController class methodsFor:'defaults'!
    83 !ButtonController class methodsFor:'defaults'!
    81 
    84 
   567 ! !
   570 ! !
   568 
   571 
   569 !ButtonController class methodsFor:'documentation'!
   572 !ButtonController class methodsFor:'documentation'!
   570 
   573 
   571 version
   574 version
   572     ^ '$Header: /cvs/stx/stx/libwidg/ButtonController.st,v 1.30 1996-02-27 13:51:16 cg Exp $'
   575     ^ '$Header: /cvs/stx/stx/libwidg/ButtonController.st,v 1.31 1996-04-25 16:35:55 cg Exp $'
   573 ! !
   576 ! !