B4A Library [REQUEST]

I usually don't make request of this sort (do it for me), but I'm kinda of blocked...
I need a small class or lib to show a Dialog... I know there are a few classes/libs to do this, but I just can't work my way through them to do what I need/want...

so, what I need as "message dialog" is.

set background image WITH round corners
accept a label as title or allow for font props
skinable buttons, that is, to use statelist and/or background image (keeping the rounded rectangule look)
the 3 "normal" buttons
the message body should also allow for font props as well as the buttons

by font props I mean Typeface, gravity, color, size, etc... the "usual stuff".

The initializer should be as simple as possible, thus allowing customization after initialization, before show..

Any one? Please????
 

Douglas Farias

Expert
Licensed User
Longtime User
porque não cria tua própria classe com painel arredondado e teus botões desejados, isto é fácil de se fazer, perdendo uns 30 minutos tu faz uma classe unica e usa ela em todo app.

tem esta aqui
http://www.b4x.com/android/forum/threads/xtraviews.42827/

tu cria um layout somente para teu dialog do jeito que quiser na aba design, e usa ele como dialog no app todo
 

Cableguy

Expert
Licensed User
Longtime User
Meu problema é que quero chamar esse diálogo num evento click que já esta numa classe, e por isso não tenho como lhe passar o Parent...
Ha alguma maneira de obter o Parent de um button? Talvez com a reflection?
 

Douglas Farias

Expert
Licensed User
Longtime User
faz um exemplo ae que te ajudo, onde quer por o diálogo. faz com uma classe qualquer pra simular o que tu precisa ja
 

Cableguy

Expert
Licensed User
Longtime User
@derez, thanks... I'll definitely take a look at it... My main problem is that my dialogue is to be called from another class button_click event, so my Parent is not directly available...
@Douglas Farias , vou tentar logo quando chegar do trabalho... E depois se necessário volto aqui
 

derez

Expert
Licensed User
Longtime User
so my Parent is not directly available.
But you have to send the response to a sub somewhere, so put parent as this somewhere (unless it is just "ok" type).
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…