[Q][morphic] TextMorph with raised border - no way

Martin Drautzburg martin.drautzburg at web.de
Thu Mar 28 22:44:08 UTC 2002


"Andreas Raab" <Andreas.Raab at gmx.de> writes:

> Martin,
> 
> All but simple borders derive their color from the morph they are owned
> by. To provide a color that overrides the default from the morph you
> have to provide a base color instead. E.g., something like
> 
> 	borderStyle := RaisedBorder new.
> 	borderStyle width: 3.
> 	borderStyle baseColor: Color green.
> 	myMorph borderStyle: borderStyle.

Andreas I ran it like this in 3.2gamma

	|borderStyle|
	borderStyle := RaisedBorder new.
	borderStyle width: 3.
	borderStyle baseColor: Color green.
	(TextMorph new borderStyle: borderStyle) openInHand

and the border is black. I can change the color with the halo, but it
turns flat then. I can change the text color with the halo and the
border changes with it and appears raised. 



More information about the Squeak-dev mailing list