[comp.lang.smalltalk] Some questions about graphics for st 4.0

linjk@vanburen.cs.unc.edu (Jin-Kun Lin) (04/12/91)

    I came from X world to learn smalltalt 4.0 on X and found a lot of 
questions.  


    1. Whenever I have a window opened (aScheduleWindow open), the process
       stops and I can't continue this process anymore.  The direct
       impact is that I can never open two windows (ScheduleWindow) at
       the same time.  What's wrong with this?  Can anyone give me
       a simple example to "open two Schedulewindow's"?

    2. What is the corresponding operation to the concept of X's parent-
       child windows?  Can I group some windows into a window and put it 
       into another window in smalltalk?
    
    3. When I use "inspect" in the program, I face the same problem as
       question 1.  How can I continue the process after "inspect"?

    4. I have "Tutorial", "User's Guide", "Release Notes", and "Installation
       Guide . Sun" for Release 4.0.  Is there any books or manual I can
       get to help me to understand how to use graphics functions?


   I appreciate whoever have patience to read until here.  Please be
more patient to tell me the answers if you know them.



-- Jin-Kun Lin

davidm@slc.com (David Monnie) (04/17/91)

In article <3122@borg.cs.unc.edu> linjk@vanburen.cs.unc.edu (Jin-Kun Lin) writes:
>    1. Whenever I have a window opened (aScheduleWindow open), the process
>       stops and I can't continue this process anymore.  The direct
>       impact is that I can never open two windows (ScheduleWindow) at
>       the same time.  What's wrong with this?  Can anyone give me
>       a simple example to "open two Schedulewindow's"?

>    3. When I use "inspect" in the program, I face the same problem as
>       question 1.  How can I continue the process after "inspect"?


Try:

  [ ScheduledWindow new open ] fork.
  [ ScheduledWindow new open ] fork.
  [ Object new inspect ] fork.
  Transcript show: 'done.'; cr.

This doesn't work, however, if you want to wait until the
user has finished inspecting the object, for example, before 
continuing execution.  Notice you get to 'done' before the
inspector has even displayed itself.


David Monnie