VariablePanel.st
changeset 722 3f297a438fec
parent 593 86dd024ed773
child 826 138bc07c873b
equal deleted inserted replaced
721:4a01084cf643 722:3f297a438fec
   493             self setupSubviews
   493             self setupSubviews
   494         ].
   494         ].
   495         shown ifTrue:[
   495         shown ifTrue:[
   496             self cursor:cursor.
   496             self cursor:cursor.
   497             self sizeChanged:nil.
   497             self sizeChanged:nil.
   498            self redraw.
   498             self invalidate.
   499         ]
   499         ]
   500     ]
   500     ]
   501 
   501 
   502     "Modified: 6.3.1996 / 18:09:22 / cg"
   502     "Modified: 29.5.1996 / 16:22:35 / cg"
   503 !
   503 !
   504 
   504 
   505 removeSubView:aView
   505 removeSubView:aView
   506     "a view is removed; adjust other subviews sizes"
   506     "a view is removed; adjust other subviews sizes"
   507 
   507 
   564      anything else to draw scrollBars handleForm.
   564      anything else to draw scrollBars handleForm.
   565      Normally, this is defined via styleSheet files, but this entry allows
   565      Normally, this is defined via styleSheet files, but this entry allows
   566      individual views to be manipulated."
   566      individual views to be manipulated."
   567 
   567 
   568     (styleSymbol ~~ handleStyle) ifTrue:[
   568     (styleSymbol ~~ handleStyle) ifTrue:[
   569 	handleStyle := styleSymbol.
   569         handleStyle := styleSymbol.
   570 	handleStyle == #next ifTrue:[
   570         handleStyle == #next ifTrue:[
   571 	    shadowForm := self class shadowFormOn:device.
   571             shadowForm := self class shadowFormOn:device.
   572 	    lightForm := self class lightFormOn:device.
   572             lightForm := self class lightFormOn:device.
   573 	] ifFalse:[
   573         ] ifFalse:[
   574 	    shadowForm := lightForm := nil
   574             shadowForm := lightForm := nil
   575 	].
   575         ].
   576 
   576 
   577 	shadowForm notNil ifTrue:[
   577         shadowForm notNil ifTrue:[
   578 	    (self is3D and:[handleStyle ~~ #motif]) ifTrue:[
   578             (self is3D and:[handleStyle ~~ #motif]) ifTrue:[
   579 		self barHeight:(shadowForm height + 2).
   579                 self barHeight:(shadowForm height + 2).
   580 		barWidth := shadowForm width
   580                 barWidth := shadowForm width
   581 	    ]
   581             ]
   582 	].
   582         ].
   583 	shown ifTrue:[
   583         shown ifTrue:[
   584 	    self resizeSubviews.
   584             self resizeSubviews.
   585 	    self redraw
   585             self invalidate
   586 	]
   586         ]
   587     ]
   587     ]
   588 
   588 
   589     "Created: 24.2.1996 / 19:04:07 / cg"
   589     "Created: 24.2.1996 / 19:04:07 / cg"
       
   590     "Modified: 29.5.1996 / 16:22:24 / cg"
   590 !
   591 !
   591 
   592 
   592 style:styleSymbol
   593 style:styleSymbol
   593     "define the style of the handle;
   594     "define the style of the handle;
   594      styleSymbol may be #motif to draw a little knob or
   595      styleSymbol may be #motif to draw a little knob or
  1176 ! !
  1177 ! !
  1177 
  1178 
  1178 !VariablePanel class methodsFor:'documentation'!
  1179 !VariablePanel class methodsFor:'documentation'!
  1179 
  1180 
  1180 version
  1181 version
  1181     ^ '$Header: /cvs/stx/stx/libwidg/VariablePanel.st,v 1.11 1996-04-27 18:20:20 cg Exp $'
  1182     ^ '$Header: /cvs/stx/stx/libwidg/VariablePanel.st,v 1.12 1996-05-29 14:40:41 cg Exp $'
  1182 ! !
  1183 ! !