Page 1 of 2
Field contents > font size within the IDE
Posted: Wed Dec 07, 2022 10:48 pm
by KimD
Hi. Hopefully a crazy easy one.
Within the IDE > Field Properties > Contents > How do I increase the size of the font being used? The current font is just too small for my 59 year old eyes (even with glasses).
Note
- I'm not trying to change the field font size in my standalones. I know how to do this.
- I've looked in Edit > Preferences, but there was nothing in there that seemed to want to let me increase the font size in the IDE (other than for the script editor).
- Ive looked in Field Properties > Preferences. There is an option in there that lets me make the size of the "Home", "Contents", etc buttons bigger, but it doesn't change the size of the font used to display the contents in the IDE.
Thanks in advance.
Kim
Re: Field contents > font size within the IDE
Posted: Thu Dec 08, 2022 12:01 am
by richmond62
https://livecode.fandom.com/wiki/TemplateField
https://forums.livecode.com/viewtopic.php?t=32923
Mind you:
Code: Select all
set the textSize of the templateField to 18
in LC 9.6.3 on MacOS 13.1 did NOT work at all.
It is ridiculous that the preferences only allow you to set the script size for the
scriptEditor.
Re: Field contents > font size within the IDE
Posted: Thu Dec 08, 2022 12:15 am
by dunbarx
Kim.
I am not sure what you are asking. Do you mean, say, that if you create a new stack and place a new field on it, (which likely has a textSize of 12) that you want to change that "default" property to, say 16?
I also am confused when you say you have control of this property in a standalone, but not in the IDE. Can you explain?
And is textSize the only property that you wish you could set as a default?
Craig
Re: Field contents > font size within the IDE
Posted: Thu Dec 08, 2022 12:18 am
by dunbarx
Just rereading.
It is ridiculous that the preferences only allow you to set the script size for the
scriptEditor.
AHA. So you are looking for a global property that survives sessions? In that case, Richmond makes a good point about setting the properties of the several "templates" to whatever values you like. Do you know what those are? There is one for nearly every type of control, and he has pointed you directly to one of them, the "templateField".
In a sense, when you set the SE properties, you are essentially setting the "templateSE", though there is not actually any such thing.
All: Or is there, and it is just an internal thing?
Craig
Re: Field contents > font size within the IDE
Posted: Thu Dec 08, 2022 12:37 am
by KimD
Hi
Its the font size used in the Property Inspector > Contents that I would like to be able to change. See attached screenshot. The default value would have been fine when I was 30, but I'm not 30 anymore
Thanks
Kim
Re: Field contents > font size within the IDE
Posted: Thu Dec 08, 2022 1:04 am
by richmond62
Then, somehow or other, you'll ned to set the textSize of that field in the revPropertyInspector stack.
Personally I cannot see how that can be done as there seems to be no obvious revPropertyInspectorTemplate stack.
Re: Field contents > font size within the IDE
Posted: Thu Dec 08, 2022 5:54 am
by dunbarx
OK, now I see.
Everything in LC is just a stack, and the property inspectors are no exception. For example, the SE is also just a stack, and one can, say, set the backColor of any part of it by normal means:
Code: Select all
set the backColor of line 1 to 50 of stack "revNewScriptEditor 1" to "yellow"
I do this sort of thing all the time to hilite sections of code so I can scroll and find them easily when working on them.
But many stacks are "reserved" (read jealously guarded) within the IDE, and are not so accessible. They can be hacked, but that must be done VERY carefully.
I would be careful if you mess with it.
Craig
Re: Field contents > font size within the IDE
Posted: Thu Dec 08, 2022 6:33 am
by Cairoo
Within the IDE > Field Properties > Contents > How do I increase the size of the font being used? The current font is just too small for my 59 year old eyes (even with glasses).
Unfortunately I could not find a crazy easy way that does NOT involve hacking the IDE's property inspector stack.
Re: Field contents > font size within the IDE
Posted: Thu Dec 08, 2022 6:48 am
by Cairoo
richmond62 wrote: ↑Thu Dec 08, 2022 1:04 am
Personally I cannot see how that can be done as there seems to be no obvious revPropertyInspectorTemplate stack.
Viewing the IDE's stacks in the project browser does show an obvious stack named "revInspectorTemplate". So I guess it's not so impossible after all.
Re: Field contents > font size within the IDE
Posted: Thu Dec 08, 2022 7:29 am
by Cairoo
So I've found the following hack:
If you edit the script of stack "com.livecode.pi.textcontents.behaviour" you can just add the following line of code to the "editorUpdate" handler:
Code: Select all
set the textSize of field "htmltext" of me to 16
I've used textSize 16 but you can use whatever size you like.
Re: Field contents > font size within the IDE
Posted: Thu Dec 08, 2022 12:07 pm
by Klaus
LC definitively needs a full text editor instead of this ridiculous little field in the inspector!
Re: Field contents > font size within the IDE
Posted: Thu Dec 08, 2022 1:21 pm
by stam
Lots of things in the IDE are
long overdue an overhaul… I suspect we’ll see a lot of that that in the new IDE that’s in the works… the little we’ve seen of this is that this suggests the IDE will have been pulled kicking and screaming into the 21st century… finally

Re: Field contents > font size within the IDE
Posted: Thu Dec 08, 2022 1:34 pm
by Klaus
Hehe, so true!

Re: Field contents > font size within the IDE
Posted: Thu Dec 08, 2022 9:38 pm
by KimD
Thanks everyone for your information / advice
I didn't feel confident with editing system stacks so I found a work around:
- create a temporary input allowed (not label) field XYZ, with a large font
- edit the contents of that field using the IDE (not Object > Property Inspector > Contents)
- then cut-n-paste the finished content from field XYZ into the content of my label fields.
Hopefully the new IDE will give us more control over things like default font size used within the IDE.
Regards
Kim
Re: Field contents > font size within the IDE
Posted: Sun Dec 11, 2022 5:57 pm
by richmond62
an obvious stack named "revInspectorTemplate".
AND, where would that be, as I cannot see any 'revInspectorTemplate' round these parts (LC 9.6.3, MacOS 13.1):
-