Ed Leafe wrote:
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.


Hmmm... I am reluctant to advocate hauling the wx size constraints stuff into dabo. I still have not figured out how Boa Constructor works in this regard: it has Size, BestFittingSize, ClientSize, MaxSize, MinSize and SizeHints properties to set and I have no idea how to work them. Sometimes I can make it do what I want, and other times not.

In essence I do not like the default size chosen by wx. Is it possible for you to set your own default size to maybe a square button and then let it expand as neccesary when the caption gets bigger? (I suspect not).

Maybe I could make those props read-write if the object is set for either Expand=False or Proportion=0?


I don't suppose that you really want users setting absolute pixel values here do you? This must make for x-platform issues?

I really, really like what I have seen so far on how you handle sizers in dabo and I don't want to see a nice, simple explicable model buggered up with lots of special case handling.

I might change my mind but right now, but if you cannot make smaller text buttons without special case contortionism then leave it as it is. I suppose that one can use bit-map buttons for small buttons? But, I can't get these to work right now ... (see next bug report).

Don.


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Reply via email to