Wednesday 2026-11-28 +-12:00
METHOD 1
Here is the easiest implementation. This is the method chosen by Brian Theado for his great app the TkOutline. This method was also used by GWM on my Hyperlink editor app. From what I could see he started the implementation but he has never completed it.
This implemention works this way:
• A page is created. It is called Preferences and it holds all the chosen values. Main calls it. The values are loaded at start up.
I believe that the way this page works in TKOutline is simply by having the user modify the Preferences page.
What could be simpler?
Geoff Michel did something a little more complex. The user would define the values in a two-pane screen and those values would be copied to the Preferences menu when the user exits.
At start up, same process: The preferences page would be read and applied.
METHOD 2
I could have followed the first method to set the Preferences module on my HLE app but I chose a different system. Don't ask me why. As if often happens, I just preferred my system! :-) There is no accounting for taste as they say. :-)
Here is how it works. I'll proceed with an example.
Let's say, the font color.
• At the place where the font color is defined, I put a 5 line code that sends the app to the Preferences page where its value is indicated. It then applies it.
I proceed this way with all the values (Start up page, hyperlink color, width of left page and so on)
That's basically it. Any user who knows what he or she is doing could modify the preferences just like he or she would do in method # 1.
Now there is a great Preferences menu that I set up with my good friend, Wonder Coder ChatGPT.
It basically works in two directions.
From the Preferences page and to the Preferences page.
From When the user clicks on a value, the app gets its value at Preferences and shows it.
To When the user chooses a value, he or she clicks on Apply and the value would be sent to the Preferences page.
In fact my system works very much like GWM'S except with 2 differences:
1. The preferences page is not a script that loads at Start up. In my system, each value gets its value from the Preferences page at start up.
2. The value chosen by the user in the Preferences menu are sent right away to the Preferences page and not when the program closes like it's done in Geoff's implmentation.
I am extremely satisfied with this system for the Preferences menu is a work of art and at the same time it is very functional.
WOW! Long live ChatGPT!
Thanks for your attention!