Where do selected morphs get their emphasizing frame from

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Where do selected morphs get their emphasizing frame from

Pharo Smalltalk Users mailing list
Hello,
tried honestly the whole day to figure out
how morphs in world get their thicker frame from, when they are selected by
a SelectionMorph.

I wanted to copy/inherit that behaviour and make the frame for such selected
items thicker than it is done by standard.

Can anyone please give me a hint?!

Thank you very much and
Best Regards
Christof



--
View this message in context: http://forum.world.st/Where-do-selected-morphs-get-their-emphasizing-frame-from-tp4847936.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|

Re: Where do selected morphs get their emphasizing frame from

Nicolai Hess
The SelectionMorph itself uses the default border width. You can
change that by adding for example

borderWidth := 4

in the initialization method.

the thin border around the selected elements is created by the
a 4 times shifted drawing
(in drawOn:)

(0@0) fourNeighbors do: [:d | form1 displayOn: form2 at: d rule: Form under].


2015-09-03 22:09 GMT+02:00 christofbuerger via Pharo-users <[hidden email]>:


---------- Weitergeleitete Nachricht ----------
From: christofbuerger <[hidden email]>
To: [hidden email]
Cc: 
Date: Thu, 3 Sep 2015 12:55:20 -0700 (PDT)
Subject: Where do selected morphs get their emphasizing frame from
Hello,
tried honestly the whole day to figure out
how morphs in world get their thicker frame from, when they are selected by
a SelectionMorph.

I wanted to copy/inherit that behaviour and make the frame for such selected
items thicker than it is done by standard.

Can anyone please give me a hint?!

Thank you very much and
Best Regards
Christof



--
View this message in context: http://forum.world.st/Where-do-selected-morphs-get-their-emphasizing-frame-from-tp4847936.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Reply | Threaded
Open this post in threaded view
|

Re: Where do selected morphs get their emphasizing frame from

christofbuerger
Thank you very much!! :-)
Reply | Threaded
Open this post in threaded view
|

Re: Where do selected morphs get their emphasizing frame from

Pharo Smalltalk Users mailing list
In reply to this post by Nicolai Hess
Thank you very much!! :-)



--
View this message in context: http://forum.world.st/Where-do-selected-morphs-get-their-emphasizing-frame-from-tp4847937p4848113.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.