[haiku-development] Re: RoundRect ButtonFrame

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 26 Mar 2012 17:45:35 +0200

On 26.03.2012 00:59, Pete Goodeve wrote:
On Sun, Mar 25, 2012 at 05:49:44PM -0400, John Scipione wrote:
Well you shouldn't do that, you should copy the Draw code from
BControlLook and the modify it from there.
That is *exactly* contrary to the concept of deriving from the base class!!
You don't copy code -- you use it!

Exactly. There is nothing wrong using methods from BControlLook (that's what they are there for), no matter if it's through BButton::Draw() or not. Depending on the customizations you do on top, you just should be aware that it might not always look like intended.

Bye,
   Axel.

Other related posts: