Bug #15354 2009-03-07 20:50

elettronica67

wxStaticBitmap not shown in the correct position

If I put a wxStaticBitmap object on a panel, wxSmith show it always on the top-left corner even if I move it into the panel. (Default pos is disabled).

If I compile and run the object is in the correct position.

Category
Plugin::wxSmith
Group
 
Status
Open
Close date
 
Assigned to
 
cryogen 2010-03-25 05:16

wxSmith is a complex plugin and this may benefit from being looked at by someone who better understands the internal workings.

Very annoying, long-term bug. Confirmed in SVN 6190.

The problem is caused by the use of a fake background when the user has not assigned a bitmap, which is always set to display at 0,0. This was done to make the control more visible, on the basis that it can be hard to see when empty. Frankly, I don't think we need this. It's quite visible enough and clicking on the control in the resource tree on the left makes it perfectly visible.

Disabling the fake background solves the problem. A nice idea is to make the control have the simple border style by default, which does make it more visible. Another is to use a default bitmap when no other has been assigned. I was unable to make either of these happen in a way that the user can override by setting control preferences normally.

Fixed in patch 2940.

cryogen 2010-03-25 05:18

wxSmith is a complex plugin and this may benefit from being looked at by someone who better understands the internal workings.

Very annoying, long-term bug. Confirmed in SVN 6190.

The problem is caused by the use of a fake background when the user has not assigned a bitmap, which is always set to display at 0,0. This was done to make the control more visible, on the basis that it can be hard to see when empty. Frankly, I don't think we need this. It's quite visible enough and clicking on the control in the resource tree on the left makes it perfectly visible.

Disabling the fake background solves the problem. A nice idea is to make the control have the simple border style by default, which does make it more visible. Another is to use a default bitmap when no other has been assigned. I was unable to make either of these happen in a way that the user can override by setting control preferences normally.

Fixed in patch 2957.

cryogen 2010-03-25 05:18

Ignore first entry, sorry.

cryogen 2010-03-25 05:20

Oh dear, I'm having a bad day. It's patch 2958!!

cryogen 2010-03-25 18:47

I have now moved further up the learning curve and implemented wxSIMPLE_BORDER as the default style. I think this is now a complete solution.