XForms: FW: Help (or possible problem with pixmap buttons)

From: Dave Gotwisner (DGotwisn@Wyse.com)
Date: Mon Sep 11 2000 - 23:31:12 EDT

  • Next message: Jean-Marc Lasgouttes: "XForms: [again] pup interaction bug?"

    > ----------
    > From: Dave Gotwisner
    > Sent: Monday, September 11, 2000 8:31 PM
    > To: 'xforms@bob.usuhw.mil'
    > Subject: Help (or possible problem with pixmap buttons)
    >
    > I am trying to create a window, which contains buttons (pixmaps) and where
    > these buttons aren't, also respond to mouse events, kind of like a windows
    > desktop.
    >
    > I have created a button (FL_NORMAL_BUTTON with a valid size), and with
    > calls to fl_set_object_boxtype (FLAT), resize (NONE), and object_color
    > (col1 == col2), and on top of this button, have created several pixmap
    > buttons (in a loop):
    >
    > fl_add_pixmapbutton(FL_NORMAL_BUTTON, with sizes being 72x64, and placed
    > on an 80x80 grid). These I set to box type UP_BOX (I want NO_BOX or
    > FLAT_BOX, behavior is identical). Resize is set to NONE, and the
    > pixmapbutton_file and pixmapbutton_focus_file are the same. Focus outline
    > can be either value, it makes no difference. Object color 1 is the same
    > as the outer button (my "desktop") and color 2 can be anything.
    >
    > Platform is x86 redhat 6.2 Linux, glibc2 version, beta 0.89.5
    > (2000/05/19), compiled June 11, 2000.
    >
    > I am not using callbacks, I have a loop that repeatedly calls fl_do_forms,
    > and one condition is for FL_EVENT, looking at CirculateNotify and
    > CirculateRequests (so I can force the form to stay at the bottom of the
    > window stack.
    >
    > Now for the behavior. If I remove the outermost button, everything
    > behaves correctly. If I put that button back on, it responds to press
    > events correctly, and the pixmap buttons vanish. If I move the cursor
    > over them, my images show up, until I remove the cursor, at which point
    > they disappear. If I press these buttons, they also notify my event loop
    > as expected.
    >
    > How do I get the pixmaps to stay on the screen (and their labels) full
    > time? Is there something other than buttons I should use? What I will
    > eventually be doing is tying the parent (larger) "button" to a menu of
    > available items to be launched, so a button may not be the correct object
    > type, but what I am trying to do right now should work, shouldn't it?
    >
    > If anyone has any pointers, I would greatly appreciate them,
    >
    > Dave
    >

    _________________________________________________
    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://world.std.com/~xforms
    List Archive: http://bob.usuhs.mil/mailserv/list-archives/



    This archive was generated by hypermail 2b29 : Mon Sep 11 2000 - 23:38:50 EDT