Grid Control for Mac

Mac OSX specific forum
Andrew Lindsay
User
User
Posts: 24
Joined: Mon May 30, 2011 12:17 pm

Grid Control for Mac

Post by Andrew Lindsay »

Is there a grid control that can be used for the Mac?

I'd like to be able to enter some data in a grid, similar to an Excel Spreadsheet, but the number of columns and rows may change from instance to instance based on previous inputs.

Any suggestions would be appreciated.

Regards

Andrew
Andrew Lindsay
-----------------------------------------
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3870
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Grid Control for Mac

Post by wilbert »

If you only need a few cells, you could use a PureBasic ListIconGadget inside a ScrollAreaGadget.
If you are looking for MacOS controls, you can try to implement NSTableView.
There are also PureBasic based implementations like for example
http://www.purebasic.fr/english/viewtop ... 12&t=54022
Windows (x64)
Raspberry Pi OS (Arm64)
Andrew Lindsay
User
User
Posts: 24
Joined: Mon May 30, 2011 12:17 pm

Re: Grid Control for Mac

Post by Andrew Lindsay »

Wilbert,

Thanks so much for that. I'm having a look at it now to see how to implement it in Purebasic. I'm just starting with PureBasic, and trying to convert an old project that I programmed in PowerBasic a long time ago. It seems fairly similar, but I'm getting hung up on a few things, mainly because I only get to delve into things on a very irregular basis.

One further question though, is it possible to use Said's grid control through the Form Designer in the IDE to set the location on a form?

Best regards
Andrew Lindsay
-----------------------------------------
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3870
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Grid Control for Mac

Post by wilbert »

Andrew Lindsay wrote:One further question though, is it possible to use Said's grid control through the Form Designer in the IDE to set the location on a form?
I don't think so. As far as I know you can only use the Form Designer for built in controls.
Windows (x64)
Raspberry Pi OS (Arm64)
Post Reply