Re: XForms: Text "Pixmap" in Pixmap buttons

Simon (th_simon@compuserve.com)
Sun, 6 Jun 1999 21:17:53 -0400

# To subscribers of the xforms list from Simon <th_simon@compuserve.com> :

> In Pixmap Buttons designed with fdesign the placeholder text
> "Pixmap" still remains in the background of the button (in addition
> to my own button text) after it is initialized by an X-Pixmap with
> fl_set_pixmap_pixmap.
> This does not always happen and I don't know from what
> this behaviour depends.

>>I've never seen this happen. Can you provide a small example which
>>exhibits this behavior?
>> spl

Create a PixmapButton of size 30x30 without label and the font set to
courier-bold-r with size 10. Then you will see the Text "Pixmap" and as
it is larger than the button the text parts outside the button will remai=
n
visible
after initializing the button pixmap.
This behaviour depends on the position of the fl_set_pixmap_pixmap comman=
d
in relation to fl_prepare_form_window and fl_show_form_window:

first case (all is o.K.):
win=3Dfl_prepare_form_window(...);
XCreatePixmap(dpy,win,...);
fl_set_pixmap_pixmap(...);
fl_show_form_window(...);

second case (Text "Pixmap" remains visible):
win=3Dfl_prepare_form_window(...);
XCreatePixmap(dpy,win,...);
fl_show_form_window(...);
fl_set_pixmap_pixmap(...);

Best regards, Th. Simon
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/