Page 1 of 1
Grid Control for Mac
Posted: Fri Jul 07, 2017 1:03 am
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
Re: Grid Control for Mac
Posted: Fri Jul 07, 2017 6:02 am
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
Re: Grid Control for Mac
Posted: Sat Jul 08, 2017 8:17 am
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
Re: Grid Control for Mac
Posted: Sat Jul 08, 2017 5:35 pm
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.