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.
Lynn,
I'm new to Morphic too and I've just recently done some basic morphic work. If you go to SqueakMap, and download InformationSpace, in there you will find a class called InformationSpaceController. In the private catagory there are two methods of interest; privateCreateTextBoxes and privateCreateButtons. Also look in the class method openInWorld for an example of dealing with a SystemWindow. privateCreateTextBoxes is where I do a lot of positioning work and is a good example of programmatically adding and positioning morphs. The one thing I haven't done is the pasteUpMorph, so the boxes don't behave when you re-size. I'm new to morphic too, so I'm still learning.
Note, you can also download the source from http://www.softcentral.com/informationspace/download.html
I hope that helps.
-Brian T
On Thu, 21 Oct 2004 11:15:18 -0600, Lynn Hales lhales@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:
- create SystemWindow
- add a pasteUpMorph to it.
- 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@earthlink.net
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@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:
- create SystemWindow
- add a pasteUpMorph to it.
- 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@earthlink.net
I'm not familiar with system windows, but I did exactly what you describe using book morphs
if you have a fast access, get the image at this page: http://www.zogotounga.net/comp/squeak/sqgeo.htm (it's a 19 Mb download)
then open the left-side 'MGraph' flap and grab a bookmorph there (the last object, bottom right).
click the '...' button at the top right of the book. more buttons appear. click the '+' one: you get a menu, select 'scrollable page'. drop any morph there and play with the scroll bars...
you can also resize the book morph at will
if you can not download the image, tell me and I'll send you some code. if you do get the image, well you will have won an experimental musical composition system. congratulations :)
hope this helps,
Stef
Lynn Hales 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:
- create SystemWindow
- add a pasteUpMorph to it.
- 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.
Hello Stéphane, Wow, very interesting work. Thanks for the reply. You've given me a lot to look at. Thanks again. Lynn
Saturday, October 23, 2004, 12:28:15 AM, you wrote:
SR> I'm not familiar with system windows, but I did exactly what you SR> describe using book morphs
SR> if you have a fast access, get the image at this page: SR> http://www.zogotounga.net/comp/squeak/sqgeo.htm SR> (it's a 19 Mb download)
SR> then open the left-side 'MGraph' flap and grab a bookmorph there (the SR> last object, bottom right).
SR> click the '...' button at the top right of the book. more buttons SR> appear. click the '+' one: you get a menu, select 'scrollable page'. SR> drop any morph there and play with the scroll bars...
SR> you can also resize the book morph at will
SR> if you can not download the image, tell me and I'll send you some code. SR> if you do get the image, well you will have won an experimental musical SR> composition system. congratulations :)
SR> hope this helps,
SR> Stef
SR> Lynn Hales 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:
- create SystemWindow
- add a pasteUpMorph to it.
- 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.
Hi Lynn there is no need to go crazy.
Here is what you need:
"Evaluate this in a workspace" w := SystemWindow new. s := ScrollPane new. p := PasteUpMorph new. p extent: 1000@1000. s scroller addMorph: p. w addMorph: s frame: (0@0 corner: 1@1). w openInWorld.
Since 3.7 ScrollPane has horizontal and vertical scrollbar. If you are using an older Squeak version you are gonna need to use TwoWayScrollablePane instead.
Hope it helps.
Regards, Hernán
-----Original Message----- From: squeak-dev-bounces@lists.squeakfoundation.org [mailto:squeak-dev-bounces@lists.squeakfoundation.org] On Behalf Of Lynn Hales Sent: Thursday, October 21, 2004 2:15 PM To: squeak-dev@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:
- create SystemWindow
- add a pasteUpMorph to it.
- 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@earthlink.net
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@1000. HT> s scroller addMorph: p. HT> w addMorph: s frame: (0@0 corner: 1@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@lists.squeakfoundation.org [mailto:squeak-dev-bounces@lists.squeakfoundation.org] On Behalf Of Lynn Hales Sent: Thursday, October 21, 2004 2:15 PM To: squeak-dev@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:
- create SystemWindow
- add a pasteUpMorph to it.
- 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@earthlink.net
Is there some way that one could make the front-end of an application using the Interface Builder in Mac OS X and code the back-end in Squeak?
I would love to be able to "draw the interface" and work in Squeak.
TIA for any insights.
Is there some way that one could make the front-end of an application using the Interface Builder in Mac OS X and code the back-end in Squeak?
I would love to be able to "draw the interface" and work in Squeak.
TIA for any insights.
squeak-dev@lists.squeakfoundation.org