Page 1 of 1

Increase the script editor font size

Posted: Wed Mar 07, 2018 12:00 am
by paul_gr
The hard wired script editor font size limit of 20 pt can be a bit small for comfort for those with poor eyesight.
High resolution screens can be an issue if you don't want the OS to set the scale too high.
On a QHD monitor I like to use a 22 point font in Livecode 8.

The script below replaces the IDE font size menu dropdown and gives a choice of 19 to 24 pt.
For some reason trying to replace the default range with a range of 8 to 24 causes the menu dropdown in the LC IDE to freeze and be unusable.

Plugin works for me on windows 10 in LC 5.5.5 and LC 8.1, should work in other versions.
Haven't tried it on MacOS or linux but it should work ok.

------- Script on plugin stack, will also work on a button ----

local moresizes
on openStack
repeat with i = 19 to 24
put i & cr after moresizes
end repeat
delete the last char of moresizes -- remove trailing CR
put moresizes into btn id 1147 of stack "revPreferencesGUI"
end openStack

--------------------------------------------------
Attached is the plugin I use.
Drop the plugin into your plugins folder and it should work ok.

cheers
Paul

Re: Increase the script editor font size

Posted: Thu Mar 08, 2018 9:04 am
by richmond62
You can edit the dropDown button "Font Size" on the card "Script Editor"in the LC Preferences
(revPreferencesGUI) but this seems to be incapable of being saved.
HackIt.png
A while back LiveCode rejigged their "thing" in such a way that it was no longer possible to save modifications to the GUI: which is "a great pity" [substitute vulgar phrase here].

Re: Increase the script editor font size

Posted: Thu Mar 08, 2018 9:29 am
by richmond62
HOWEVER; by saving the revPreferencesGUI stack as an external stack renamed to "RPG" one can
modify it, and then use it as your Preferences palette: script sizes now "stick".
Monster.png
modded.png
RPG.livecode.zip
(40.87 KiB) Downloaded 211 times
Be careful, my modified stack may curdle your milk and drive your cows mad 8)

Re: Increase the script editor font size

Posted: Thu Mar 08, 2018 2:39 pm
by bogs
Looks good Richmond :wink:

Re: Increase the script editor font size

Posted: Thu Mar 08, 2018 5:58 pm
by jacque
A while back LiveCode rejigged their "thing" in such a way that it was no longer possible to save modifications to the GUI: which is "a great pity" [substitute vulgar phrase here].
That would depend on your perspective. It's saved my butt more than once when I've entered commands in the message box and accidentally altered the message box instead of my working stack.

Most likely the IDE has cantModify set for its own stacks, but changing the prefs is a better solution because that will persist through any updates.

Re: Increase the script editor font size

Posted: Thu Mar 08, 2018 6:36 pm
by paul_gr
richmond62 wrote:
Thu Mar 08, 2018 9:29 am
HOWEVER; by saving the revPreferencesGUI stack as an external stack renamed to "RPG" one can
modify it, and then use it as your Preferences palette: script sizes now "stick".
Thanks Richmond,
It's always good to see different ways of making LC do what we want it to.

Paul

Re: Increase the script editor font size

Posted: Thu Mar 08, 2018 7:08 pm
by richmond62
Thanks Richard
Who's "Richard" . . . 'Pavel'? 8)

Re: Increase the script editor font size

Posted: Thu Mar 08, 2018 7:50 pm
by paul_gr
richmond62 wrote:
Thu Mar 08, 2018 7:08 pm
Thanks Richard
Who's "Richard" . . . 'Pavel'? 8)
Sorry Richmond, I should know by now.
I've only been here 11 years :oops:

Paul

Re: Increase the script editor font size

Posted: Thu Mar 08, 2018 8:02 pm
by richmond62
Not a real problem, Paul: just a lovely excuse to pull your leg 8)

Re: Increase the script editor font size

Posted: Thu Mar 08, 2018 8:22 pm
by bogs
richmond62 wrote:
Thu Mar 08, 2018 7:08 pm
Thanks Richard
Who's "Richard" . . . 'Pavel'? 8)
It is ok Klaus... :twisted:
jacque wrote:
Thu Mar 08, 2018 5:58 pm
A while back LiveCode rejigged their "thing" in such a way that it was no longer possible to save modifications to the GUI: which is "a great pity" [substitute vulgar phrase here].
That would depend on your perspective. It's saved my butt more than once when I've entered commands in the message box and accidentally altered the message box instead of my working stack.
What Jacque, you don't like your message box with 3 arms, 5 legs, and 62 eyes? :lol:
Most likely the IDE has cantModify set for its own stacks, but changing the prefs is a better solution because that will persist through any updates.
Now THAT ONE I can tell you how to change Richmond :wink:

Re: Increase the script editor font size

Posted: Mon Feb 08, 2021 11:20 am
by richmond62
I can tell you how to change Richmond
I'm starting to get worried. 8)

Re: Increase the script editor font size

Posted: Mon Feb 08, 2021 12:15 pm
by bogs
richmond62 wrote:
Mon Feb 08, 2021 11:20 am
I can tell you how to change Richmond
I'm starting to get worried. 8)
You SHOULD be :twisted: :twisted: :twisted: