On 07/16/11 06:15, Dmitrij K wrote:
> Albrecht Schlosser <[email protected]> wrote:
> 
>> -#define SCROLLBAR_SIZE      16
>> +#define SCROLLBAR_SIZE      (Fl::scrollbar_size())
> 
> 
> Perhaps it will to have conflicts for names of variables from users 
> (SCROLLBAR_SIZE),
> But maybe and not...

        It shouldn't conflict because the above #define is in
        the .cxx file, which is not exposed to users.

        If it had been in the .H file, then yes, that would be
        a conflict.. but not the case here, so Albrecht's suggestion
        would be OK.

        When the _scrollbar_size member is added, there would need
        to be some special logic when finding the scrollbar size
        to be consistent with the other widgets, eg:

                int actual_size = _scrollbar_size ? _scrollbar_size : 
Fl::scrollbar_size();

        This allows the widget to have its own 'local' size for the
        scrollbar, or the default which would be _scrollbar_size being
        set to zero, using the global scrollbar size instead.
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to