Changeset 102

Show
Ignore:
Timestamp:
11/17/07 19:08:44 (13 months ago)
Author:
ashley
Message:

Added bistate option to check.r and check-group.r

Files:
4 modified

Legend:

Unmodified
Added
Removed
  • rebgui-ctx.r

    r101 r102  
    111111ctx-rebgui: make object! [ 
    112112 
    113         build:          101 
     113        build:          102 
    114114        view*:          system/view 
    115115        locale*:        system/locale 
  • rebgui.r

    r101 r102  
    1 REBOL[version: 101] 
     1REBOL[version: 102] 
    22if system/version < 1.3.2[make error! "RebGUI requires View 1.3.2 or greater"] 
    33unless value? 'viewed?[ 
     
    2424] 
    2525ctx-rebgui: make object![ 
    26 build: 101  
     26build: 102  
    2727view*: system/view  
    2828locale*: system/locale  
     
    15041504Left and right mouse clicks alternate between Yes/No and Unknown respectively. 
    15051505OPTIONS: 
    1506 'info specifies read-only} 
     1506'info specifies read-only 
     1507'bistate disables right-click state} 
    15071508size: -1x5  
    15081509text: ""  
     
    15331534do select[ 
    15341535down[face/data: either none? face/data[true][none]face/action/on-click face] 
    1535 alt-down[face/data: either none? face/data[false][none]face/action/on-click face] 
     1536alt-down[ 
     1537unless find face/options 'bistate[ 
     1538face/data: either none? face/data[false][none]face/action/on-click face 
     1539] 
     1540] 
    15361541away[face/feel/over face false 0x0] 
    15371542]act 
     
    15611566At runtime face/data is a block of logic (or none) indicating state of each check box. 
    15621567OPTIONS: 
    1563 'info specifies read-only} 
     1568'info specifies read-only 
     1569'bistate disables right-click state} 
    15641570size: 50x-1  
    15651571pane:[] 
  • widgets/check-group.r

    r75 r102  
    1111                OPTIONS: 
    1212                        'info specifies read-only 
     13                        'bistate disables right-click state 
    1314        } 
    1415        size:   50x-1 
  • widgets/check.r

    r75 r102  
    1212                OPTIONS: 
    1313                        'info specifies read-only 
     14                        'bistate disables right-click state 
    1415        } 
    1516        size:   -1x5 
     
    4142                        do select [ 
    4243                                down            [face/data: either none? face/data [true] [none] face/action/on-click face] 
    43                                 alt-down        [face/data: either none? face/data [false] [none] face/action/on-click face] 
     44                                alt-down        [ 
     45                                        unless find face/options 'bistate [ 
     46                                                face/data: either none? face/data [false] [none] face/action/on-click face 
     47                                        ] 
     48                                ] 
    4449                                away            [face/feel/over face false 0x0] 
    4550                        ] act