Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Providing SWT themeable scrollbars (on Windows)



On Sun, Feb 21, 2016 at 5:16 PM, Tom Schindl <tom.schindl@xxxxxxxxxxxxxxx> wrote:
hose APIs (i.e.: the CSS theming on Windows would be changed to
> do that).
>
> 2. **Tree/Table/List**: The current implementation for those controls
> makes it very difficult to actually create themed scrollbars, so, my
> suggestion here would be creating a custom ScrolledComposite for each of
> the needed classes which would be used to wrap those controls while
> providing a themed scrollbar. Its API would then be similar to the new
> API added to StyledText (for which an interface would be created), so,
> those controls would be created without any scroll and would be added to
> such a custom ScrolledComposite.
>

a) This would break virtual as ALL items are visible all time
b) This only works for Table/Tree without ANY Header as you would
   scroll that out of view

Summary: This approach is IMHO a none starter!

​Humm, I agree, now that you say it, that wouldn't work for the tree/table (still have to investigate better into it then -- it could probably still work for the header by creating 2 internal trees, one for the header and the other for the items and wrapping it up so that it's transparent to the user, but I don't know about the virtual yet, so, will take a better look at that use-case)... 

So, this means for now I only have an approach for the StyledText (any feedback on that?)​

Thanks,

Fabio

Back to the top