piDogs DataView has at least the hiding scrollbar, the elastic scrolling behaviour (why odd? I think it feels natural) and supports the user accent color. On Mac it looks and feels very native.
But i’m very happy that there is a new, interesting, alternative, thank you @Gabriele_Marchionni
Do you mean hides when there’s not enough data for scrolling to make sense, or hides when there’s no mouse hover? The former is sensible, the latter I loathe.
I didn’t realize that until I was painstakingly alighting stuff in the UI in an app and looked at it on someone else’s computer and saw that everything in the listboxes was pushed over to the left by the scrollbar track that wasn’t visible on mine.
There is fair bit of customization you can achieve with just playing with colours (and transparency). Including a macOS-like header and hiding the scrollbars.
The bug occurs when clicking the vertical scroll “knob” when it is at the top. When clicking the “knob” it also causes whatever column header that is underneath it to also sort.
The error happens if the grid is scrolled down to a lower position, then if you horizontally scroll so that last column’s width is fully visible (including if there is empty space to the right), and then scroll vertically up to the top. When you hit the top - the error occurs.
As a suggestion, I’m wondering, if and when you have time (no rush), is it possible to change the vertical scroll behaviour?
A. When scrolling content vertically, the grid appears to always move about 4 rows at a time, regardless if you are scrolling quickly or slowly. This behaviour appears to be the same whether using a trackpad, a mouse scrollwheel or manually moving the scrollbar with the mouse.
Feature Request: It would be great, if scrolling slowly, if the grid could move just 1 row at a time.
Observation: Using the up/down arrow keys on a selected row moves the selection 1 row at a time (which is great), but when moving up or down the list and the selected row goes beyond the top or bottom of the grid - the grid does not move to keep the selected row visible.
B. The length of the horizontal scrollbar appears proportionally correct (for the number of columns not visible). But, the vertical scrollbar size appears to be always the same small size, regardless of how many rows are not visible.
In the attached screen-shot, I modified the query to only return 30 records, but the vertical scrollbar is still small. Ideally, it should be about 2/3 of the height of the grid.
Feature Request: Make the height of the vertical scrollbar more proportional (by number of visible vs. none-visible rows).
Alternative option: Make the pixel height of the vertical scrollbar an editable property.
Hi @ChristopheDV,
can you give me an example of a grid with smooth scrolling? So I will take that as a reference.
Xojo lists do not have the smooth scrolling, so even from another software not Xojo.
Thanks.
In Xcode you can useNSTableView for this. I guess every app the has a datagrid does use this for macOS.
Apple itself uses this in Numbers (Excel-a-like).
It will give the app a native feeling. For many (most?) macOS users this is important.
FWW SwiftDataGrid is a free control and uses NSTableView.