howard@arisia.Xerox.COM (Milton G. Howard) (09/09/90)
I am using version 1.x of the XView toolkit. Is there any way to highlight (inverse video on a monochrome monitor) the PANEL_VALUE of a PANEL_TEXT Panel_item programmatically (i.e. to draw the user's attention to a specific text string)? I need only worry about the monochrome case and I am ONLY interested in highlighting the PANEL_VALUE NOT the PANEL_LABEL_STRING. In other words it would be nice if there was a PANEL_INVERSE boolean attribute that I could set to TRUE. A short code sample or explanation would be MUCH appreciated. Please e-mail me directly since unfortunately I don't have time to read this newsgroup as often as I would like. Thanks in advance, //Milton e-mail address: howard@arisia.xerox.com OR MHoward.osbunorth@xerox.com OR MHoward.osbu_north@xerox.com Could be either address since we are currently in a gateway transition.
argv@turnpike.Eng.Sun.COM (Dan Heller) (09/10/90)
In article <12268@arisia.Xerox.COM> howard@arisia.Xerox.COM (Milton G. Howard) writes: > I am using version 1.x of the XView toolkit. Is there any way to > highlight (inverse video on a monochrome monitor) the PANEL_VALUE > of a PANEL_TEXT Panel_item programmatically (i.e. to draw the user's > attention to a specific text string)? Not that I know of. The reason this isn't possible is that a reverse video selection would give the same appearance as if the text were selected. And you don't want to go messing with the selection mechanism. You can't change the font for "portions" of the strings, either, so don't try that. You can change the font for the text's value itself, but to do that, you change the font for -all- text items in the panel. And you can only affect that at panel creation time, I believe (I may be wrong, but it doesn't matter -- you shouldn't do that anyway). You should consider using other visual cues such putting up a notice that eminates from the text you want the user to notice. This is in fact what I do when I want the user to be aware of mistyped or wrong text values for certain panel items. +----------------------------------------------------+ | | | Text Label: __text value typed______ | | \ | | +----+ \ | | | Ok | \ | | +----+ +----------------------+ +------------------------------| This value is wrong. | +----------------------+ In this situation, when the user hits the Ok button, I check the settings of the panel sequentially and when one has an invalid value, I put up a notice like the one showed above. -- dan ---------------------------------------------------- O'Reilly && Associates argv@sun.com / argv@ora.com Opinions expressed reflect those of the author only.