Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!pasteur!cory.Berkeley.EDU!dheller From: dheller@cory.Berkeley.EDU (Dan Heller) Newsgroups: comp.windows.x Subject: "reverseVideo" attribute when writing widgets Message-ID: <11712@pasteur.Berkeley.EDU> Date: 31 Mar 89 06:06:32 GMT Sender: news@pasteur.Berkeley.EDU Reply-To: dheller@cory.Berkeley.EDU (Dan Heller) Followup-To: comp.windows.x Organization: University of California, Berkeley Lines: 16 When writing widgets, I've found that every single widget has to test for the reverseVideo attribute in the Initialize function and reverse the values of the background and foreground colors, or this doesn't seem to happen automatically. What's worse, the result seems to be unpredictable (mostly due to lack of adequate testing :-). It would be nice if the toolkit intrinsics noticed this and swapped those colors for you, but alas, not every widget has a foreground color (most do). At any rate, I was wondering if someone else knows how to better deal with this. Also, are there any other attributes that have to be dealt with similarly? Dan Heller