At 6:55 AM -0800 11/29/2001, Michael R. Maitzen wrote:
>I have been lurking for a while and I have not really done anything
>in Revolution yet but, as a long time HyperCard and SuperCard user, I
>was hoping to use it to make some cross platform applications. The
>application that I would like to tackle first requires giving users
>drawing capabilities and I don't see anywhere how to choose a line
>tool. All the drawing tools seem to revolve around making shapes. Is
>there a line tool other than the paint line tool?

Not exactly. There is a single graphic tool, which is used to create
graphics of all types, including lines. (The graphic's style property
determines its shape - so a line is a graphic object whose style is "line".
The shape of the line is determined by its points property.)

For example, to create a line from 100,100 to 200,200, you could do the
following:

  set the style of the templateGraphic to "line"
  set the points of the templateGraphic to "100,100" & return & "200,200"
  create graphic

(The templateGraphic lets you specify the properties of the next graphic
object you create. Of course, you could also create the graphic first, then
set the new graphic's style and points properties. This way is just a bit
neater.)

To "use the line tool", then, you just need this:

  set the style of the templateGraphic to "line"
  choose graphic tool

>Also, something I could not figure out how to do in SuperCard was to
>zoom in or out of the drawing (card) to provide wider or narrower
>views of the drawing especially when it is larger than the screen. Is
>there some way to accomplish this that does not require resizing
>every graphic on the card?

There's nothing built in. But I don't think resizing the controls will be
too painful, assuming there are reasonable numbers of controls.

--
Jeanne A. E. DeVoto ~ [EMAIL PROTECTED]
http://www.runrev.com/
Runtime Revolution Limited - Power to the Developer!


_______________________________________________
improve-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/improve-revolution

Reply via email to