Forums › Forums › SIMPOL Programming › bitmap as form backdrop?
- This topic has 3 replies, 2 voices, and was last updated 14 years, 5 months ago by Jim Locker.
- AuthorPosts
- November 27, 2009 at 10:15 pm #36Jim LockerMember
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?
November 30, 2009 at 4:34 pm #1558MichaelKeymasterJim 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
November 30, 2009 at 7:57 pm #1804Jim LockerMemberNeil 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???December 2, 2009 at 11:02 am #1720MichaelKeymasterJim 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
- AuthorPosts
- You must be logged in to reply to this topic.