New: Free Grid control

=) Things are always more complex… Thanks, this looks nice.

One suggestion if you want it… On Windows I always loved the List view in Explorer because you can view many objects at one time. It takes advantage of the vertical AND the horizontal.

Your control simulates this well except when you multi-select it does that in deference to the horizontal rows. The List view allows you to select via the vertical rows. In other words, the columns are dominant, things are ordered down the first column, then restarts in the second column; instead of first row, second row, etc.

Garth, you mean the mode where the first column get filled from top to bottom before adding more items to the next column? To make that work, a lot of changes need to be made, because then also the view would not scroll vertically but horizontally. Basically, everything would get rotated by 90 degrees.

I am certainly not eager to do that work because I am finished with what I needed for my own app.

No problem. This type of thing was one of the FIRST things I tried on Realbasic 3! I gave up. =)

Well, I could say this: If someone really wants this and can pay for it (or gather a few people who share the cost), I’m more willing to do that, as I am surely quicker at it than anyone else, especially now that I’m still quite familiar with the workings of the code. But it’ll still be a few hours even for me to get this right, and I’m not cheap :slight_smile:

It doesn’t run on windows as it gives an error “PlatformNotSupportedException”. Could you check please

Search for Declare and place them in a conditional compile block.

#If targetMacOS then // The declares #Endif

It may not run perfectly without the declares, so you will probably have to adapt the code. But Thomas explicitly wrote in his original post :

For Windows

in this sub:
Private Sub handlePaint(g as Graphics, areas() as REALbasic.Rect)

replace the next line:
dim p as new Picture (mCellWidth, mCellHeight)

with:
dim p as new Picture (mCellWidth, mCellHeight,32)

and it starts working.

So, Windows doesn’t support Pictures with Alpha channels at all?

Yes it does, but GDI+ has to be turned on.

The simplest way to proceed is to add

App.UseGDIPlus = True

In the beginning of your class.

In a full program, one can do that in App.Open or set it in the App inspector.

Submitting your app is like releasing the hounds of hell as 50,000 beta testers tear your work apart. I once submitted an app to a hostile VB audience and the response was like falling into a cage full of hungry pittbulls. Great learning curve though.