Re: [Pharo-dev] Bloc: Why Fast Drag?
2015-03-09 8:59 GMT+01:00 Alain Plantec via Pharo-dev < pharo-dev@lists.pharo.org>:
---------- Weitergeleitete Nachricht ---------- From: Alain Plantec <alain.plantec@yahoo.com> To: Pharo Development List <pharo-dev@lists.pharo.org> Cc: Date: Mon, 9 Mar 2015 08:31:46 +0100 Subject: Re: [Pharo-dev] Bloc: Why Fast Drag? yes, this is because even in Bloc, morphic morphs are still drawn with the Form based framework, whereas the hand is itself drawn with Athens. When a morph is dragged, it is added as a hand child. As a hand child, it should also be drawn with Athens but not every Morphic morphs can so, so far, a gray rectangle is drawn during the drag.
When it will be possible to draw any Morphic morph with Athens, then all dragged morphs will be rendered normally.
This works quite well now, with the latest pharo 40. You can test this yourself, replace Morph>>#drawWhenGrabbedByHandOnAthensCanvas: aCanvas with Morph>>#drawWhenGrabbedByHandOnAthensCanvas: aCanvas self fullDrawOnAthensCanvas: aCanvas Nicolai
Cheers Alain
Le 9 mars 2015 à 04:28, Sean P. DeNigris <sean@clipperadams.com> a écrit :
From "Experiencing Self Objects": "Moving an object moves the actual object around the screen, not an outline, which contributes to maintaining the solidity of objects."
----- Cheers, Sean -- View this message in context: http://forum.world.st/Bloc-Why-Fast-Drag-tp4810544.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
checking this was in my to do list. Thanks a lot Nicolai, I will make a try. Alain
On 09 Mar 2015, at 11:54, Nicolai Hess <nicolaihess@web.de> wrote:
2015-03-09 8:59 GMT+01:00 Alain Plantec via Pharo-dev <pharo-dev@lists.pharo.org <mailto:pharo-dev@lists.pharo.org>>:
---------- Weitergeleitete Nachricht ---------- From: Alain Plantec <alain.plantec@yahoo.com <mailto:alain.plantec@yahoo.com>> To: Pharo Development List <pharo-dev@lists.pharo.org <mailto:pharo-dev@lists.pharo.org>> Cc: Date: Mon, 9 Mar 2015 08:31:46 +0100 Subject: Re: [Pharo-dev] Bloc: Why Fast Drag? yes, this is because even in Bloc, morphic morphs are still drawn with the Form based framework, whereas the hand is itself drawn with Athens. When a morph is dragged, it is added as a hand child. As a hand child, it should also be drawn with Athens but not every Morphic morphs can so, so far, a gray rectangle is drawn during the drag.
When it will be possible to draw any Morphic morph with Athens, then all dragged morphs will be rendered normally.
This works quite well now, with the latest pharo 40. You can test this yourself, replace Morph>>#drawWhenGrabbedByHandOnAthensCanvas: aCanvas with
Morph>>#drawWhenGrabbedByHandOnAthensCanvas: aCanvas self fullDrawOnAthensCanvas: aCanvas
Nicolai
Cheers Alain
Le 9 mars 2015 à 04:28, Sean P. DeNigris <sean@clipperadams.com <mailto:sean@clipperadams.com>> a écrit :
From "Experiencing Self Objects": "Moving an object moves the actual object around the screen, not an outline, which contributes to maintaining the solidity of objects."
----- Cheers, Sean -- View this message in context: http://forum.world.st/Bloc-Why-Fast-Drag-tp4810544.html <http://forum.world.st/Bloc-Why-Fast-Drag-tp4810544.html> Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
participants (2)
-
Alain Plantec -
Nicolai Hess