matthiasm wrote:
> On 26.03.2009, at 18:44, Greg Ercolano wrote:
> 
>> Albrecht Schlosser wrote:
>>> Great, Greg, thanks!
>>> But one small issue:
>>>
>>>> +    ALWAYS_ON = 4,                ///< Both scrollbars always on
>>>> [..]
>>>> +    BOTH_ALWAYS = 7               ///< both scrollbars always on
>>      Hmm, good catch.
>>      Yeah, agreed the ALWAYS_ON should not imply both.
>>      Will fix.
> 
> ALWAYS_ON simply means that whichever scrollbars are requested they  
> are always visible, even if the scrolling area is smaller than the  
> window. BOTH_ALLWAYS is simply the combination of LEFT|RIGHT|ALWAYS

        Right -- I didn't catch they were bit flags.
        (I thought they were unique values, because of the 1,2,3..)

        I rewrote it this way now; let me know if it's still unclear:

  /** Anonymous enum bit flags for has_scrollbar().
     -  bit 0: horizontal
     -  bit 1: vertical
     -  bit 2: 'always' (to be combined with bits 0 and 1)
     -  bit 3-31: reserved for future use
   */
  enum { // values for has_scrollbar()
    HORIZONTAL = 1,             ///< Only show horizontal scrollbar.
    VERTICAL = 2,               ///< Only show vertical scrollbar.
    BOTH = 3,                   ///< Show both scrollbars. (default)
    ALWAYS_ON = 4,              ///< Specified scrollbar(s) should 'always' be 
shown (to be used with HORIZONTAL/VERTICAL)
    HORIZONTAL_ALWAYS = 5,      ///< Horizontal scrollbar always on.
    VERTICAL_ALWAYS = 6,        ///< Vertical scrollbar always on.
    BOTH_ALWAYS = 7             ///< Both scrollbars always on.
  };
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to