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
History
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.
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.
Ignore first entry, sorry.
Oh dear, I'm having a bad day. It's patch 2958!!
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.