2009/2/22 Alexandre Bergel <Alexandre.Bergel@inria.fr>:
Dear All,
I know some of you are morphic expert :-) I am still on the quest to make Mondrian usuable in Squeak/Pharo. The situation is the following: I have a window having scrollbar, and I am trying to render (using Balloon) something bigger than what the window can actually display. Balloon seems to not be aware of the part of the canvas being actually displayed. It simply try to render everything. Is my guess right? Can anyone confirm please? Is there a way to turn this on?
Canvas has the clipping capabilities. So, you can send a command to render a rectangle (-1000 @ -1000) corner: (10000 @10000) but depends on canvas clipping area, it will render only part of it. Also, for displaying morphs withing area with scrolling - use a TransformMorph to apply clipping & sroll in view. There are another morphs , ready for use , like ScrollPane
Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Best regards, Igor Stasenko AKA sig.