# To subscribers of the xforms list from firstname.lastname@example.org :
> I wanna place a FL_BUTTON on top of a canvas - so that the button action
> is evidently associated with the canvas.
> Obviously, I enconter some problems redrawing the button : the canvas
> hides it.
> I tried to force the button to get redrawn by calling fl_redraw_object at
> the end of the expose handler of the canvas - no succes....
The short answer is, you can't.
The Canvas is a special XForms object in that it is a plain X Window
which is drawn on top of an XForms Window.
The only thing I can suggest (and I haven't tried this so no
guarantees) is that you try creating a new Form with your button in
it, initialize it with fl_prepare_form_window(), and reparent it to
FD_whatever *whatever = create_form_whatever();
* this should be relative to the origin of the Canvas.
some_x_offset, some_y_offset );
window = fl_prepare_form_window( whatever->whatever,
fl_winparent( window, FL_ObjWin( canvas ) );
fl_show_form_window( whatever->whatever );
Again, this is just a guess but it's worth a try.
To unsubscribe, send the message "unsubscribe" to
email@example.com or see
XForms Home Page: http://world.std.com/~xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/
This archive was generated by hypermail 2b29 : Thu Jul 12 2001 - 17:10:54 EDT