#REFACTORING by cg
class: ActiveHelpView class
comment/format in: #documentation
changed: #updateStyleCache
--- a/ActiveHelpView.st Thu Jun 14 11:33:09 2018 +0200
+++ b/ActiveHelpView.st Thu Jun 14 11:37:36 2018 +0200
@@ -46,12 +46,17 @@
Instances of myself show up either as a comics-like talking
view, or as a simple square popup. This is configured via the
- styleSheet; the default is simple-square.
+ styleSheet. The default is simple-square.
+
To get the fancy comics style, add a resource 'activeHelpStyle' with
- a symbol-value of #cartoon.
+ a symbol-value of #cartoon to the stylesheet, or set the overwrite
+ in the userPrefs with:
+ UserPreferences current toolTipShapeStyle:#cartoon.
However, be aware that some servers have performance problems with
- these view-shapes (or do not support shapes at all).
+ these view-shapes (or do not support shapes at all, like XQuartz on OSX).
Therefore, the default style is a rectangular popupView.
+ If the prefs were changed, you can return back to the stylesheet's default with:
+ UserPreferences current toolTipShapeStyle:nil.
[author:]
Claus Gittinger
@@ -159,10 +164,13 @@
!ActiveHelpView class methodsFor:'updateStyleCache'!
updateStyleCache
+ <resource: #style (#'activeHelp.font')>
+
super updateStyleCache.
DefaultFont := StyleSheet fontAt:#'activeHelp.font' default:nil.
"Created: / 07-06-2018 / 18:25:51 / Claus Gittinger"
+ "Modified: / 14-06-2018 / 08:38:04 / Claus Gittinger"
! !
!ActiveHelpView methodsFor:'accessing'!