enhancements by Jan
authorClaus Gittinger <cg@exept.de>
Fri, 10 Sep 2004 15:51:41 +0200
changeset 2739 f54f0d4e08b1
parent 2738 0058a8de3a0e
child 2740 c9812e019351
enhancements by Jan
NoteBookView.st
--- a/NoteBookView.st	Mon Sep 06 19:53:48 2004 +0200
+++ b/NoteBookView.st	Fri Sep 10 15:51:41 2004 +0200
@@ -1596,6 +1596,16 @@
     ].
 !
 
+postRealize
+    "automatically set the initially selected notebook tab;
+     unless it has been set already (by setup code)"
+
+    selection isNil ifTrue:[
+        self setSelection:1.
+    ].
+    super postRealize.
+!
+
 realize
 
     (canvas notNil and:[numberOfLines isNil]) ifTrue:[
@@ -2837,5 +2847,5 @@
 !NoteBookView class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg2/NoteBookView.st,v 1.95 2004-06-23 08:33:24 ca Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/NoteBookView.st,v 1.96 2004-09-10 13:51:41 cg Exp $'
 ! !