Accessing customised columns in a datagrid

Peter Haworth pete at
Wed Mar 30 19:52:13 EDT 2011

I didn't create a "canvas" - to be honest I couldn't figure out exactly what was involved so I tried what I understood :-)

The +5 isn't a big deal, I was just curious in case 5 wasn't a constant and had to be adjusted depending on, eg, the column width.  The current code seems to work OK even if I resize the column so it appears 5 is the number.

Pete Haworth

On Mar 30, 2011, at 4:42 PM, Trevor DeVore wrote:

> On Wed, Mar 30, 2011 at 6:08 PM, Peter Haworth <pete at>wrote:
>> When I first tried this, I did not have the "+5" in the second line of code
>> - the checkbox moved to the right but it still wasn't centered.  The "+5"
>> centered things OK.  Any ideas why I need that "+5"?
> I'm not sure. Do you need the +5 if you create a canvas?
> -- 
> Trevor DeVore
> Blue Mango Learning Systems
> ScreenSteps:
> LiveCode Resources for Developers:
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the use-livecode mailing list