Edit text size
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Edit text size
When I first started using LiveCode I didn't know that there was a global default text size. Because of that, I have manually changed the text size of every individual object. I am now in need of changing the text size of everything manually to 15 from 18. After updating to version 9 the text doesn't fit in any of my fields or buttons. If there a way to do this other than selecting each individual object?
"Det bästa stället att hitta en hjälpande hand är i slutet av din egen arm" förutom här
Re: Edit text size
Well if you want to reset EVERYTHING to default you couldI will leave it to you to expand this to cater for substacks
Code: Select all
repeat with i = 1 to the number of cards of this stack
repeat with j = 1 to the number of controls of card i of this stack
if the textSize of control j of card i of this stack is not empty then
set the textSize of control j of card i of this stack to empty
end if
end repeat
end repeat
Re: Edit text size
Thank you, also I put this in the wrong forum, should not be in announcements and I cant find the delete button. please someone move it or delete it
"Det bästa stället att hitta en hjälpande hand är i slutet av din egen arm" förutom här
Re: Edit text size
Just for future reference, another way to do this is to just select all controls that have text formatting, and in the property inspector, blank out or set the size to whatever you want.
You can see these are the objects I placed on the form... ...Then I set the text size to something too large, OOPS Blanking it sets the size to the defaults.
You can see these are the objects I placed on the form... ...Then I set the text size to something too large, OOPS Blanking it sets the size to the defaults.
-
- VIP Livecode Opensource Backer
- Posts: 9709
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Edit text size
Hi.
It is not so much as a "default" textSize, (or almost any other text property, such as textFont or textHeight) but that newly created fields inherit these properties from the IDE. I guess you could consider these "defaults", but if you ask for, say, the textFont of a newly created field, it will return empty. Jacque has spoken at length about this subject, and I believe her usual advice is to set the properties of the templateField, and then all new fields will inherit them.
Craig
It is not so much as a "default" textSize, (or almost any other text property, such as textFont or textHeight) but that newly created fields inherit these properties from the IDE. I guess you could consider these "defaults", but if you ask for, say, the textFont of a newly created field, it will return empty. Jacque has spoken at length about this subject, and I believe her usual advice is to set the properties of the templateField, and then all new fields will inherit them.
Craig
Last edited by dunbarx on Wed Jul 31, 2019 1:18 am, edited 1 time in total.
Re: Edit text size
Mmm, yes better to think in terms of "inheritance" rather than "defaults".
Set the textSize (or textFont, or backcolor, or other properties) of the parent, and any child objects that do not have the explicit setting, will inherit that from the parent. This could be the stack, the card, the group, etc. The nearest relative ancestor will take precedence (inheritance from the parent - or "owner" - group will apply over any inheritance from the group's owner, eg card, or further up to the stack.)
Set the textSize (or textFont, or backcolor, or other properties) of the parent, and any child objects that do not have the explicit setting, will inherit that from the parent. This could be the stack, the card, the group, etc. The nearest relative ancestor will take precedence (inheritance from the parent - or "owner" - group will apply over any inheritance from the group's owner, eg card, or further up to the stack.)