[comp.windows.x.motif] X Toolkit Warning : Invalid Columns, must be > 0 ?

gleeson@hfglobe.intel.com (Gary Gleeson) (05/22/91)

Keywords: 

I am using a row-column widget with an array of 9 text widgets as siblings.  The text widgets are arranged in VERTICAL orientation and set up in a tab group. I can tab between the text widgets without any problem, but when I add an event handler to the widget to highlight the colour when I enter the text widget I get the following X Toolkit Warning :

X Toolkit Warning :
    Name : col2text
    Class: XmText
    Invalid Columns, must be > 0.

This warning is at run-time only, and if I take the event handler out - the warning does not appear.  I have based this code on a similar piece of code that I wrote for a row-column widget set-up with a HORIZONTALorientation, which works fine, changing the text widgets colours when  I Focus-In on that particular text widget.

I also cannot find this warning documented anywhere. Has anyone had anysimilar experience and what if any was the solution ?

Interested to hear any solutions.

Gary.

=======================================================================

Gary Gleeson,

Intel Corp.
5000 W. Chandler Blvd.,
Chandler,
AZ 85226.

phone : (602) - 554-3437.

=======================================================================