Re: Q: About popups & cascade menus

Dr. T.C. Zhao (zhao@bragg.phys.uwm.edu)
Thu, 26 Dec 1996 11:41:09 -0600

To subscribers of the xforms list from "Dr. T.C. Zhao" <zhao@bragg.phys.uwm.edu> :

X-Mailer: Mozilla 3.0 (X11; I; Linux 2.0.27 i486)
>error when the button "menu" is pushed.
>
X Error of failed request: BadMatch (invalid parameter attributes)
> Major opcode of failed request: 1 (X_CreateWindow)

>I have found that the culprit is in function "init_menu" in the line

> mm=fl_newpup(0);
>The argument is supposed to be ID of the window to which the popup

This demo will fail when the visual selected by xforms is different
from the server default (xforms always selects the visual that has the
deepest colors). To make the demo work, run it with -visual Default
command line or see the new pup demo in V0.84. Another way
to make the demo work is to change the 0 in fl_newpup to
fl_default_window() (*The* trailblazer window).