Re: metacard-list V1 #2

Charles Bowen (Charles_Bowen@iegate.mitre.org)
31 May 1995 08:46:13 -0500

Subject: RE>metacard-list V1 #2

Actually, removing the border is what we do for non-editable fields. We set
the shadowthickness resource of the Motif widget to 0 and set the background
color of the textfield widget to be 80% darker than the background color of
the window (which are all pastels--LightSteelBlue, Gray75, MistyRose2,
PaleTurquiose3, Bisque). The rule is simple, if an object can be manipulated
(e.g., a control, an editable textfield) it is three dimensional in
appearance. If an object cannot be manipulated, as in a display only
textfield, it is two dimensional. This is specified in the Theater Battle
Management Human Computer Interface Specification currently being used by the
US Air Force.

--------------------------------------
Date: 5/31/95 8:38 AM
To: Charles Bowen
From: metacard-list@best.com
Received: by iegate.mitre.org with SMTP;31 May 1995 08:36:44 -0500
Received: from blob.best.net (blob.best.net [204.156.128.88]) by
mbunix.mitre.org (8.6.10/8.6.9) with ESMTP id IAA19324 for
<Charles_Bowen@iegate.mitre.org>; Wed, 31 May 1995 08:33:17 -0400
From: owner-metacard-list@best.com
Received: from shell1.best.com (shell1.best.com [204.156.128.10]) by
blob.best.net (8.6.12/8.6.5) with ESMTP id FAA22092; Wed, 31 May 1995 05:10:23
-0700
Received: (majordom@localhost) by shell1.best.com (8.6.12/8.6.5) id FAA16400
for metacard-list-digest-outgoing; Wed, 31 May 1995 05:10:36 -0700
Date: Wed, 31 May 1995 05:10:36 -0700
Message-Id: <199505311210.FAA16400@shell1.best.com>
To: metacard-list-digest@shell1.best.com
Subject: metacard-list V1 #2
Reply-To: metacard-list@best.com
Errors-To: owner-metacard-list@best.com
Precedence: bulk

metacard-list Wednesday, 31 May 1995 Volume 01 : Number 002

This digest's subjects:

Re: Shadow Thickness

----------------------------------------------------------------------

From: Scott Raney <raney@metacard.com>
Date: Tue, 30 May 1995 10:21:06 -0600 (MDT)
Subject: Re: Shadow Thickness

>
> Subject: Shadow Thickness
>
> Is there a way to adjust the shadow thickness of various MetaCard objects.
We
> use a different shadow thickness to distinguish a data entry field from a
data
> display field.

A thicker *shadow* isn't to difficult to create (though I suspect that
this isn't what you're really asking for). Just create a field or
button with showBorder set to false and a dark background color and
put it underneath your field, offset down and to the left by whatever
"thickness" you want.

If you want thicker *borders*, things get a little more complicated.
One technique would be to put several objects on top of each other,
with the lower layers slightly larger than the upper. This would work
fine for fields, but is a little complicated for buttons where you
would have to toggle the colors of the all the objects below the
button when the button is pressed. You could also use a graphic or
paint a thicker border, but again you'd have the problem of setting
the colors if you're using a button.

Just FYI, in MetaCard 2.0 you'll be able to set a control's border
width and shadow thickness directly.

All this begs the question, however, of why you're even considering
using this technique. None of the GUI style guides mention it and so
I suspect that it will just be confusing to users of your application.
Better, I think, would be to either just remove the borders from your
non-editable fields (the standard), or set the background color and/or
fonts of the editable fields different from the editable ones (a
technique used in some database front-end toolkits).

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

------------------------------

End of metacard-list V1 #2
**************************