OpenXTalk-org / OpenXtalk-IDE-DontPanicEdition

OpenXTalk DON'T PANIC! Edition cross-platform integrated development environment (IDE) with a foundation built on xTalk Scripting Languages. This repo contains the OXT IDE that is built with and runs on of an XTalk Engine.
https://forums.openxtalk.org/
18 stars 7 forks source link

MenuBar text size #12

Open mwieder opened 1 year ago

mwieder commented 1 year ago

This is in a binary stack, so a pull request won't do, so...

in field MenuToolbarTextSize of stack revPreferencesGUI the code expects 14 buttons but there are only 13 now. In addition, this only affects the toolbar and not the text of the menuBar itself, which should IMO match. The fix for this:

remove the textSize property of the 13 menu buttons in the toolbar and change the code to read

on menuPick pItemName set the cToolBarFontSize of stack "revPreferences" to pItemName set the textSize of stack "revMenuBar" to pItemName updateMenuToolBar end menuPick

That way the entire menubar text is inherited, is updated at once, and you don't have to count the buttons.