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

  • From: "Jonas Sundström" <jonas@xxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 03 May 2009 14:55:15 +0200 CEST

Rene Gollent <anevilyak@xxxxxxxxx> wrote:
> On Sat, May 2, 2009 at 4:06 PM, Axel Dörfler
> <axeld@xxxxxxxxxxxxxxxx> wrote:
 ...
> > AFAIK an application cannot make any assumptions
> > in a BAlert beyond it containing a BTextView and
> > some buttons - it shouldn't matter if it uses the
> > layout engine or not.
> 
> Well, the main concern for me is apps that do things
> like move the buttons around manually and add some
> extra widget of their own (i.e. a custom graphic or
> whatnot).

The BeBook suggests it for BFilePanel, but isn´t this
bad practice?

(And in the BAlert case - compared to BFilePanel - 
there´s not likely any missing out on future system 
enhancements*, if you choose to make your own dialog,
so there´s more risk than gain in using some hashed
up BAlert.)

BFilePanel could be given an optional view for app
specifics. Sort of like this, but less ugly:

http://www.kirilla.com/tmp/FilePanelAppSpecificView.png

/Jonas.

* well, who knows :)


Other related posts: