Insensitive stipple bitmap not working

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

Questions about motif? Contact us

3 posts / 0 new
Last post
Insensitive stipple bitmap not working

Submitted by glenn on Tue, 08/21/2007 - 00:50.

Hi,

I have a problem with using an insensitive stipple bitmap with OpenMotif2.3 on Linux RedHat EL5. (openmotif-2.3.0-0.3.el5)

I am setting the insensitive stipple bitmap to solid/1 so I can just lighten the font colour to make text more readable when setting fields inactive.

static unsigned char g_stippleBitmap[32] =<br />
{ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,<br />
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,<br />
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,<br />
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF };</p>
<p>CreateTopWindow(...)<br />
{<br />
...<br />
Screen *screen = XtScreen(the_app_shell);<br />
Widget xmScreen = XmGetXmScreen(screen);<br />
xd->m_insensitiveStipplePixmap =<br />
XCreateBitmapFromData(display, XtWindow(the_app_shell),<br />
(char *)(g_stippleBitmap), 16, 16);</p>
<p> if (xd->m_insensitiveStipplePixmap != XmUNSPECIFIED_PIXMAP)<br />
{<br />
XtVaSetValues(xmScreen,<br />
XmNinsensitiveStippleBitmap, xd->m_insensitiveStipplePixmap,<br />
0);<br />
}<br />
...<br />
}

This works on fine Linux RedHat EL3 (openmotif-2.2.3-5.RHEL3.7) and EL 4 (openmotif-devel-2.2.3-10.1.el4) However on RH EL5, text on menus/labels and buttons completely disappear. I tried inverting the bitmap, which fixes the problem with labels, however, text boxes then lose their text when set insensitive. I can get around plain text boxes by not actually setting them insensitive and just making them not editable, but for pulldown lists/combo boxes and numeric fields (with up/down arrow buttons) I don't seem to have any choice.

So I am stuck.

I have searched the forum and bugs, and it sounds like it may be related to bugs 1297 and/or 1381, but it happens with both anti-aliased and non-anti-aliased fonts, and neither issue appear to be fixed as yet.

Help would be very much appreciated.

Tue, 08/21/2007 - 20:12#1

Tue, 08/21/2007 - 20:12#1

dpeterc

Insensitive stipple bitmap not working

There were some modifications related to that in CVS about one week ago:
http://cvs.motifzone.net/cgi-bin/cvsweb ... te#dirlist
Did you try to recompile OpenMotif from the latest CVS?
Sorry I can't help more; I would like to see this resolved, too.
Also, an official OM bug fix update would not be bad.

Thu, 11/01/2007 - 15:42#2

Thu, 11/01/2007 - 15:42#2

Yuriy Syrota

Insensitive stipple bitmap not working

This is reported as bug 1361 in OpenMotif bugzilla. It's fixed in CVS for now, the fix should be in upcoming release 2.3.1.