Morphic help
Lynn Hales
lhales at earthlink.net
Sun Oct 24 22:20:37 UTC 2004
Hello Brian, thanks again for the pointers. Lynn
Friday, October 22, 2004, 8:26:50 PM, you wrote:
BT> Lynn,
BT> I'm new to Morphic too and I've just recently done some basic
BT> morphic work. If you go to SqueakMap, and download InformationSpace,
BT> in there you will find a class called InformationSpaceController. In
BT> the private catagory there are two methods of interest;
BT> privateCreateTextBoxes and privateCreateButtons. Also look in the
BT> class method openInWorld for an example of dealing with a
BT> SystemWindow. privateCreateTextBoxes is where I do a lot of
BT> positioning work and is a good example of programmatically adding and
BT> positioning morphs. The one thing I haven't done is the pasteUpMorph,
BT> so the boxes don't behave when you re-size. I'm new to morphic too, so
BT> I'm still learning.
BT> Note, you can also download the source from
BT> http://www.softcentral.com/informationspace/download.html
BT> I hope that helps.
BT> -Brian T
BT> On Thu, 21 Oct 2004 11:15:18 -0600, Lynn Hales <lhales at earthlink.net> wrote:
>> 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
|