Skip to content

bitmap as form backdrop?

Forums Forums SIMPOL Programming bitmap as form backdrop?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #36
    Jim Locker
    Member

    I’m trying to use a bitmap image as a form backdrop. Problem is I can’t seem to set the z-order and it is appearing in front of all my controls except for a label. I use the setnext method, but it doesn’t seem to do a thing. The description of setnext is that it sets the z-order AND the tab order. But I can’t tell if “highest Z-order” is front or back, and the method doesn’t seem to affect how the form is displayed anyway. How do I set a bitmap image to be at the back, with everything displayed in front of it?

    #1558
    Michael
    Keymaster

    Jim wrote:
    > I'm trying to use a bitmap image as a form backdrop.
    >
    > Problem is I can't seem to set the z-order and it is appearing in
    > front of all my controls except for a label.
    >
    > I use the setnext method, but it doesn't seem to do a thing. The
    > description of setnext is that it sets the z-order AND the tab order.
    > But I can't tell if "highest Z-order" is front or back, and the
    > method doesn't seem to affect how the form is displayed anyway.
    >
    > How do I set a bitmap image to be at the back, with everything
    > displayed in front of it?
    >

    Create the bitmap first. But, please note that the graphic controls are
    all lower in the z-order than any form control, including bitmaps. So
    lines, rectangles, triangles, ellipses, and arcs will all appear below
    the bitmap. Otherwise, z-order is control creation order, with the first
    appearing at the bottom, and the others appearing above it.

    Ciao, Neil

    #1804
    Jim Locker
    Member

    Neil Robinson wrote:

    > Create the bitmap first. But, please note that the graphic controls are
    > all lower in the z-order than any form control, including bitmaps. So
    > lines, rectangles, triangles, ellipses, and arcs will all appear below
    > the bitmap. Otherwise, z-order is control creation order, with the first
    > appearing at the bottom, and the others appearing above it.

    > Ciao, Neil

    This is the kind of behavior I expected, but it doesn't seem to work. I
    create the bitmap first, and only a label appears above it. Command
    buttons appear below it. Now, command buttons are rectangles; are you
    telling me that these will never be above the bitmap???

    #1720
    Michael
    Keymaster

    Jim wrote:
    > Neil Robinson wrote:
    >
    >> Create the bitmap first. But, please note that the graphic controls
    >> are all lower in the z-order than any form control, including
    >> bitmaps. So lines, rectangles, triangles, ellipses, and arcs will
    >> all appear below the bitmap. Otherwise, z-order is control creation
    >> order, with the first appearing at the bottom, and the others
    >> appearing above it.
    >
    >> Ciao, Neil
    >
    > This is the kind of behavior I expected, but it doesn't seem to work.
    > I create the bitmap first, and only a label appears above it.
    > Command buttons appear below it. Now, command buttons are
    > rectangles; are you telling me that these will never be above the
    > bitmap???

    If you are using the wxgraphicrectangle, then they will always be
    beneath all form controls. If, on the other hand, you are saying that
    you are drawing wxformbutton objects over a wxformbitmap and they are
    ending up below, that is a different thing altogether. Have you checked
    to see if it is a refresh issue (move the window off the desktop and back)?

    Ciao, Neil

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.