the properties

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, LCMark

Locked
LCMark
Livecode Staff Member
Livecode Staff Member
Posts: 1208
Joined: Thu Apr 11, 2013 11:27 am

Re: the properties

Post by LCMark » Fri Jul 05, 2013 5:13 pm

I think that since the script property isn't included, including the password and passKey doesn't make sense... I think the script property (and associated password) is something that will just have to be handled in script when using 'the properties'.

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: the properties

Post by monte » Fri Jul 05, 2013 11:18 pm

OK, btw I submitted a bug report on the padding docs http://quality.runrev.com/show_bug.cgi?id=11030... was it originally meant to be a field property as well as a paragraph property? ... not sure why the docs go on about table cells... is it possible to set the padding on individual cells? It would seem to be useful if the paragraphs inherited the property from the field but could override it... so perhaps rather than fix the docs adding the appropriate get and set props would be better...
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: the properties

Post by monte » Fri Jul 05, 2013 11:51 pm

A brief experiment with padding and it's easy change setprop to add it as a whole field property by passing it off to settextatts:

Code: Select all

case P_FLAGGED_RANGES:
case P_PADDING:
	return settextatts(parid, p, ep, nil, 0, getpgsize(nil), false);
But the way it's implemented it just overrides the paragraph property for all paragraphs. It would be nicer if the paragraph inherited from the field if the padding wasn't set... any thoughts?
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Locked

Return to “Engine Contributors”