matthes@MOZART.INFORMATIK.RWTH-AACHEN.DE (Matthias Eichstaedt) (06/06/91)
Hello,
I have two questions about the Interviews3.0:
1) The new ChoiceItem`s works with two Glyphs instead of a Glyph an a Color for
highlighting. Now I like to build an complex object with a normal an a
highlighted state, in which the foreground color becomes the background
color and vice versa. Can I build this object without creating two identical
(complex) glyphs (with only different colors) that must both be maintained
each time the object changes its internals. For example (_patch1, _patch2,
_l1 and _l2 are members of XY):
XY::XY(char *name, int num) :
ChoiceItem(_patch1 = new Patch(nil), _patch2 = new Patch(nil))
{
font = World::current()->font();
_c1 = World::current()->foreground();
_c2 = World::current()->background();
_patch1->body(new Background(_l1 = new LRBox(new Label(name, font, _c1),
new HGlue(20),
new Label(dec(num), font, _c1)),
_c2));
_patch2->body(new Background(_l2 = new LRBox(new Label(name, font, _c2),
new HGlue(20),
new Label(dec(num), font, _c2)),
_c1));
}
2) Are there new manual pages for the actual versions of the Interviews
classes (e.g. the new ChoiceItem or Menu) ?
Thanks, Matthias
/\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
/ \
/\ Matthias Eichstaedt Lehrstuhl fuer Informatik III /\
\/ RWTH Aachen Ahornstr. 55 \/
\ Germany W-5100 Aachen /
/ Tel. +49 241 80-21311 \
\ /
/ EUNET : matthes@rwthi3.uucp \
/\ ...!mcvax!unido!rwthi3!matthes /\
\/ matthes@rwthi3.informatik.rwth-aachen.de \/
\ /
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
linton@marktwain.rad.sgi.com (Mark Linton) (06/13/91)
In article <9106061407.AA02131@rwthi3.informatik.rwth-aachen.de>, matthes@MOZART.INFORMATIK.RWTH-AACHEN.DE (Matthias Eichstaedt) writes: |> 1) The new ChoiceItem`s works with two Glyphs instead of a Glyph an a Color for |> highlighting. Now I like to build an complex object with a normal an a |> highlighted state, in which the foreground color becomes the background |> color and vice versa. Can I build this object without creating two identical |> (complex) glyphs (with only different colors) that must both be maintained |> each time the object changes its internals. For example (_patch1, _patch2, |> _l1 and _l2 are members of XY): I would suggest defining your own Telltale that (re)creates the object with the appropriate colors whenever the highlight state changes. We have found that highlighting by reversing colors doesn't work in general, as many objects don't have obvious foreground and background colors. An image is the obvious example, but even multicolor text doesn't really highlight the way you want if you try to reverse. This is why drawing editors typically use handles and doc uses a gray fill area underneath the selection. |> 2) Are there new manual pages for the actual versions of the Interviews |> classes (e.g. the new ChoiceItem or Menu) ? Not yet. It is on the list of things to do for 3.0.