[haiku-development] Re: RoundRect ButtonFrame

On Sun, Mar 25, 2012 at 11:30:43AM -0400, John Scipione wrote:
> On Fri, Mar 23, 2012 at 7:01 PM, Pete Goodeve <pete.goodeve@xxxxxxxxxxxx> 
> wrote:
> >> > On 23/03/12 08:22, John Scipione wrote:
> >> >>
> >> >> My second question is, what do you think of adding a radius to the
> >> >> default BButton?
> >
> > My worry would be derived classes.  I have some specialized buttons
> > that do some drawing of their own, as well as deriving from BButton.
> > I'd hate to have them break if the default changed.  (And personally
> > I'm quite happy with the way they look now...!)
> 
> If your custom buttons do their own drawing then it shouldn't be a
> problem, this only applies to buttons drawn by ControlLook. 

Well, no.  That's the thing.  I call the standard BButton::Draw(), and then
add stuff on top  (a persistent state representation).  Probably no
conflict in this particular case, but you never know.

>                                                                               
>              Besides by
> that logic no interface element could ever change.

It should only ever change in a backwards-compatible fashoin... (:-))

As noted in another thread (the one on Qt) one of the intentional good
features of the Be/Haiku API is that you can derive classes from the
basic set to fit one's particular needs.  Changes at the base level
mustn't affect that.

        -- Pete --

Other related posts: