BButton class accepting BShape argument for its label
|Reported by:||konradjr||Owned by:||stippi|
At the moment, one can pass a 'text' (const char*) argument to set the text-label of a BButton. Would it be possible to pass a BShape argument to a BButton object in order to create a button with a 'picture' instead of a text label?
I have seen how the mediaplayer solves this (for its 'transport' play/pause/stop buttons), where it overrides the BButton 's methods (especially the Draw() method) in order to achieve this.
In this possible solution, I imagine, there would be a SetShape(BShape* shape) method (corresponding to the SetLabel(const char* label) method of the BButton class.
Would something like that be programmatically possible, especially with regards to Haiku's LayoutManager? I imagine that if it used 'overloading', this solution would not break any previous BeOS or Haiku code.