Morphic help

Lynn Hales lhales at earthlink.net
Sun Oct 24 22:06:03 UTC 2004


Hello Hernan, perfect thanks very much. Lynn

Saturday, October 23, 2004, 7:42:35 AM, you wrote:

HT> Hi Lynn there is no need to go crazy. 

HT> Here is what you need:

HT> "Evaluate this in a workspace"
HT> w := SystemWindow new.
HT> s := ScrollPane new.
HT> p := PasteUpMorph new.
HT> p extent: 1000 at 1000.
HT> s scroller addMorph: p.
HT> w addMorph: s frame: (0 at 0 corner: 1 at 1).
HT> w openInWorld.

HT> Since 3.7 ScrollPane has horizontal and vertical scrollbar. If you are
HT> using an older Squeak version you are gonna need to use
HT> TwoWayScrollablePane instead. 

HT> Hope it helps.

HT> Regards,
HT> Hernán

>> -----Original Message-----
>> From: squeak-dev-bounces at lists.squeakfoundation.org 
>> [mailto:squeak-dev-bounces at lists.squeakfoundation.org] On 
>> Behalf Of Lynn Hales
>> Sent: Thursday, October 21, 2004 2:15 PM
>> To: squeak-dev at lists.squeakfoundation.org
>> Subject: Morphic help
>> 
>> 
>> I'm going crazy trying to simply create a SystemWindow with horizontal
>> and vertical scroll bars and programmatically add morphs and 
>> connector morphs to it.  I want to be
>> able to select and move morphs without having to alt left click until
>> I get the popup menu for the morph.  I
>> also want to be able to resize the System Window and have all
>> submorphs behave.
>> 
>> It seems to me I need to:
>> 1. create SystemWindow
>> 2. add a pasteUpMorph to it.
>> 3. set the pasteUpMorph to be large ( larger than the systemWindow,
>> but have its upper left corner always coincide with the upper left
>> corner of the systemWindow.
>> 4. have the scroll bars on the systemWindow scroll around to different
>> locations on the pasteUpMorph.
>> 5. Be able to drop or programmatically add morphs to the pasteUpMorph
>> at the dropped positions or at the programmatically determined
>> positions.
>> 
>> Could someone give me some pseudo code for me to work from or
>> pointers or tell me where my assumptions are wrong.
>> 
>> 
>> -- 
>> Best regards,
>>  Lynn                          mailto:lhales at earthlink.net
>> 
>> 





-- 
Best regards,
 Lynn                            mailto:lhales at earthlink.net




More information about the Squeak-dev mailing list