[squeak-dev] The Trunk: ToolBuilder-Kernel-mt.155.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Feb 10 13:51:45 UTC 2022


Marcel Taeumel uploaded a new version of ToolBuilder-Kernel to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Kernel-mt.155.mcz

==================== Summary ====================

Name: ToolBuilder-Kernel-mt.155
Author: mt
Time: 10 February 2022, 2:51:44.426689 pm
UUID: b05848f8-55d7-ac4c-bbad-84d8b93ff760
Ancestors: ToolBuilder-Kernel-mt.154

Adds #helpFieldHeight as layout hint for tool construction. Use it to integrate informational panels into your tool layout. For example, the FontImporterTool shows the font's copyright information in such a text field.

=============== Diff against ToolBuilder-Kernel-mt.154 ===============

Item was added:
+ ----- Method: ToolBuilder>>helpFieldHeight (in category 'layout hints') -----
+ helpFieldHeight
+ 	
+ 	^ self helpFieldHeightFor: 1!

Item was added:
+ ----- Method: ToolBuilder>>helpFieldHeightFor: (in category 'layout hints') -----
+ helpFieldHeightFor: numLines
+ 	"Answers the height in pixels a help field typically needs to be drawn without clipping using a ProportionalLayout and LayoutFrame."
+ 	
+ 	^ (Preferences standardBalloonHelpFont lineGrid * 3/2) truncated * numLines!



More information about the Squeak-dev mailing list