On Jan 16, 2006, at 3:40 PM, Don Taylor wrote:
I have a browse button that has '...' as its caption and I would
like the button to reduce in size to fit the caption.
I notice that if I put in a very long caption then the default size
of the button does expand to show the entire caption, but if I then
change it back to '...' then the button goes back to its original
default size and not down to the size to just accomadate the '...'
caption.
Maybe this is design intent? Or a lo priority bug?
It's a wx thing. Buttons have a default size, and will grow to
fit a longer caption, but will not get smaller than the default
unless you tell them. I've set the sizing properties to read-only so
as not to confuse users who set them explicitly, only to have the
sizers re-size and re-position them.
Maybe I could make those props read-write if the object is set
for either Expand=False or Proportion=0?
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users