Re: Properties Dialog

Scott Raney ((no email))
Tue, 19 Oct 93 12:08:13 MDT

>
>
> 10/16/93
>
> general question
> ================
> I have a number of fields, graphics and images that overlay each other
> and I can't easily get to the properties dialog of those in the middle
> layers without resetting all the layers, etc. I can get to the script
> of these objects easily by executing from the message box:
> edit script of field "myfield"
> but I haven't been able to figure out a way to get to the Properties
> Dialog from the message box. I've tried several ways, like:
> edit properties of field "myfield"
> but the error dialog thinks I'm wanting to edit the script.
>
> If anyone has been able to bring up an object's properties dialog from the
> message box, I would appreciate a hint.

The properties dialogs get the values of "the selectedObject", so to
get a property dialog to work on a specific object, you have to select
it first:
select button "some button"
modeless "Button Properties"

> specific question
> =================
> How do we change the color of the outline of a graphic, for instance, an
> object rectangle or circle, from the message box. I tried to change the
>
> set the outlinecolor
> set the bordercolor
> set the linecolor
>
> but none of these worked for me.

Graphic colors map to the standard names. If you use the "Color
Chooser" dialog, you don't have to do the mapping in your head. If
you want to change them in a script, here's the mapping:
line (object border) -> foregroundColor
fill -> backgroundColor
marker -> hiliteColor
marker fill -> borderColor
top -> topColor
bottom -> bottomColor
shadow -> shadowColor
focus -> focusColor

> If anyone knows what the property names are for the graphic objects, that
> is, object rectangles and circles, I would appreciate some help, here,
> too.

Try taking apart the "Graphic Properties" dialog (e.g. type 'topLevel
"Graphic Properties"' into the Message Box, and use the pointer tool
to check the scripts of the card and of the groups). The only trick
is that most of the style-specific properties are set in the scripts
of the groups that hide and show depending on the state of the "style"
radio group.

If you've got a SuperCard book handy, this may also be of some use as
MetaCard uses SuperCard terminology whenever possible. Of course,
these properties will be documented in the MetaTalk Reference as 1.3
gets farther along...

> --
> Sincerely,
>
> Clark Parsons, MS 11, 1UL7
> OSSD Learning Products
> Hewlett-Packard Company
> Fort Collins, Colorado USA
> clarkp@fc.hp.com
> (303) 229-3323
>

-- 
***********************************************************************
* Scott Raney  303-447-3936            Remember: the better you look, *
* raney@metacard.com                   the more you'll see -- Lidia   *
***********************************************************************