#FEATURE by cg
authorClaus Gittinger <cg@exept.de>
Fri, 14 Oct 2016 12:57:53 +0200
changeset 3763 72a6db06eee5
parent 3762 036884e46f66
child 3764 a76c6c4cd637
#FEATURE by cg class: FlyByHelp changed: #helpTextFromView:at: allow for old-style topviews to provide a help spec.
FlyByHelp.st
--- a/FlyByHelp.st	Fri Oct 14 02:39:37 2016 +0200
+++ b/FlyByHelp.st	Fri Oct 14 12:57:53 2016 +0200
@@ -205,6 +205,13 @@
         key notNil ifTrue:[
             app := aView application.
             app isNil ifTrue:[
+                "/ special case for oldStyle Dialog subclasses.
+                aView topView flyByHelpSpec notNil ifTrue:[
+                    text := aView topView flyByHelpSpec at:key ifAbsent:nil.
+                    text notNil ifTrue:[
+                        ^ aView topView resources stringWithCRs:text.
+                    ].    
+                ].    
                 app := Error handle:[:ex | nil] do:[ aView windowGroup mainGroup application ].
             ].
             app notNil ifTrue:[