[haiku-development] Re: BAlert with > 3 buttons?

  • From: "François Revol" <revol@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 02 May 2009 21:16:07 +0200 CEST

> Hi,
>
> While working on ticket #3171, I've essentially run into the problem
> that I need to be able to construct an alert with > 3 buttons to
> reflect the variety of possible options you might need when resolving
> those file ops (cancel, skip, skip all, replace, replace all, etc.).
> However, BAlert's API doesn't currently allow for this. The question
> is, would it be desirable to extend BAlert's API to be able to do
> this, and if so, how? Ideally such a thing would use layouts, but
> this
> isn't universally possible since quite a few apps mess with BAlert's
> views directly. Any ideas/thoughts on how to go about this? I'd
> rather
> avoid rolling a custom class just for Tracker since it's likely not
> the only one that'd need to be able to do something similar.

Isn't there another way ?
like, using a BMenuField with the possible options, best selected, +
Cancel & Ok ?
Or radio buttons ?

François.

Other related posts: