how to create an invisible text box

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
how to create an invisible text box

Submitted by jbreazeale on Fri, 06/10/2005 - 22:41. General Questions
I'd like to have a text box that contains text that's "displayed" on the current page (window) but not be visible. Presuming there was only one of these invisible text boxes in a page, when the user traverses the text boxes on the page using up/down arrows and enters the invisible text box the cursor and indication of the current position would disappear. Upon traversing from the invisible text box the cursor would reappear.

The reason for this hack is there are data validation functions that need to be triggered on the page of text. When the user finally finishes inputting a page of data the presence of and data within the hidden text box will trigger certain data validations.

Anyone know if there's a way to do this?

fredk

Set the foreground color to the same as background color, and set all borders/margins to zero.
Set XmNcursorPositionVisible to False.
--
Fred K