Xref: utzoo alt.toolkits.xview:7 comp.windows.x:26753 Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!sun-barr!newstop!sun!argv From: argv@turnpike.Eng.Sun.COM (Dan Heller) Newsgroups: alt.toolkits.xview,comp.windows.x Subject: Re: XView toolkit question Keywords: XView, Selection, Text Message-ID: <142071@sun.Eng.Sun.COM> Date: 9 Sep 90 19:17:08 GMT References: <12268@arisia.Xerox.COM> Sender: news@sun.Eng.Sun.COM Organization: O'Reilly && Associates Lines: 39 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.