Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!decwrl!stanford.edu!MOZART.INFORMATIK.RWTH-AACHEN.DE!matthes From: matthes@MOZART.INFORMATIK.RWTH-AACHEN.DE (Matthias Eichstaedt) Newsgroups: comp.windows.interviews Subject: ChoiceItems Message-ID: <9106061407.AA02131@rwthi3.informatik.rwth-aachen.de> Date: 6 Jun 91 14:07:44 GMT Sender: news@shelby.stanford.edu (USENET News System) Organization: Internet-USENET Gateway at Stanford University Lines: 47 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 \/ \ / \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/