johnston@ug.cs.dal.ca (Bruce Johnston) (11/01/89)
Thanks to those that responded to my scrolling question. Now I
have another one (I just cant seem to follow the nuances of Inside Mac!)
I want to create a pseudo programming-language editor.
The language looks something like this:
{proc a :
stuff....
{proc b:
stuff....
}
stuff...
}
Now I read in text files in this form..... but when the main window appears
I only want to show this much:
{proc a :}
I need to hide the rest of the data until later (the user wants to view it)
So the question is....... If I set up another TErec for the other data,
how do I hide it? I have an idea that I could set both the destination rect
and the view rect to values off the screen and then they wont be shown. I could
then copy data from that TErec to the one on the main window. Is this possible?
Am I crazy? (at least about this idea!)
Also if this is possible, then what would happen if I changed the destination
and view rectangles to values within the screen. Would the text appear? Can you
change those values?
There... thats it I think... pretty messed up aren't I? 8-)
Well If any body understands what I mean, and has any suggestions or help,
I would really appreciate it.
Thanx in advance
--
Bruce Johnston
Dalhousie University Halifax, Nova Scotia, CAnada.
Disclaimer: I'm always right... and submarines have screen doors!kaufman@Neon.Stanford.EDU (Marc T. Kaufman) (11/01/89)
In article <1989Oct31.171247.279@ug.cs.dal.ca> johnston@ug.cs.dal.ca (Bruce Johnston) writes:
-Thanks to those that responded to my scrolling question. Now I
-have another one (I just cant seem to follow the nuances of Inside Mac!)
-I want to create a pseudo programming-language editor.
-The language looks something like this:
-{proc a :
- stuff....
- {proc b:
- stuff....
- }
- stuff...
-}
-Now I read in text files in this form..... but when the main window appears
-I only want to show this much:
-{proc a :}
-I need to hide the rest of the data until later (the user wants to view it)
-So the question is....... If I set up another TErec for the other data,
-how do I hide it?
Try using SetStyle to change the Font Size to 0 over the range you want to
hide.
Marc Kaufman (kaufman@Neon.stanford.edu)