Re: widget colours [message #13294] |
Tue, 03 November 1998 00:00  |
Craig Hamilton
Messages: 28 Registered: December 1996
|
Junior Member |
|
|
We work around this problem by putting a tiny draw widget beside each
text widget and using plots to fill the draw widget with the desired color.
So, you wind up with a colored square next to each text widget. I
actually prefer this look, with all the text widgets the same, not different
colors.
Craig
-Craig A. Hamilton,PhD cah@medeng.wfubmc.edu
-Wake Forest Univ. School of Medicine
-Dept. of Med. Engr. / MRI Center
-Medical Center Blvd.
-Winston-Salem, NC 27157-1022
-(336)716-2819 [FAX: 2870] [Secr: 6890]
LC's No-Spam Newsreading account wrote in message ...
> I have been requested by a colleague to evaluate usage of IDL vs other
> environments (e.g. VB or perhaps HTML) for the construction of a simple GUI
> which should assist in the manufacturing and storage of masks for a
> spectrograph.
>
> I'm pretty sure that IDL will be suited for this, and could take advantage
of
> some experience available in-house.
>
> The final thing should run on an NT systems.
> While I'm doing my evaluation on Unix.
>
> In this respect it is quite important for us to have a clear COLOUR CODING
to
> tell the operator which thing belongs to which of 4 quadrants. For instance
we
> would have four text widgets with the names of the masks loaded in the
various
> slots of four cabinets. We wish the background of the widgets to be
coloured.
>
> Apparently this is not a "normal" attribute of a WIDGET_TEXT.
> I solved the problem (for demonstrating a prototype) under Unix and X with
> a statement like :
>
> sct1 = WIDGET_TEXT(scts,XSIZE =8,YSIZE = 15,VALUE = a,
resource_name='quad1')
>
> where I define colours in an X resource file with things like
>
> Idl*voe*quad1*background: red
>
> but this mechanism is intrinsically unportable to NT, and the documentation
> gives no hints about colour attributes for text widgets under NT.
>
> Any idea ?
> Other than using a DRAW widget instead of a TEXT widget ?
> I would sorely regret to be forced to use another language *just* because
of
> this.
>
>
> --
> ------------------------------------------------------------ ----------
> nospam@ifctr.mi.cnr.it is a newsreading account used by more persons to
> avoid unwanted spam. Any mail returning to this address will be rejected.
> Users can disclose their e-mail address in the article if they wish so.
>
|
|
|