Spanish [Solucionado] CustomLayoutDialog no me funciona

GonzaloR

Member
Licensed User
Buenos dias/tardes/noches xD.

Necesito mostrar un dialogo con 3 checkbox pero no hay manera. Llevo 2 horas con ello y no me sale.

B4X:
Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    Activity.LoadLayout("Layout1")
    Dim cd As CustomLayoutDialog
    cd.ShowAsync("Generar contraseña","Generar","Cancelar","", Null,False)
    cd.SetSize(100%x, 100%y)
    Wait For Dialog_Ready(pnl As Panel)
    pnl.LoadLayout("genPassword")
End Sub
 

Attachments

  • CustomDialog.zip
    9 KB · Views: 243

rscheel

Well-Known Member
Licensed User
Longtime User
Buenos dias/tardes/noches xD.

Necesito mostrar un dialogo con 3 checkbox pero no hay manera. Llevo 2 horas con ello y no me sale.

B4X:
Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    Activity.LoadLayout("Layout1")
    Dim cd As CustomLayoutDialog
    cd.ShowAsync("Generar contraseña","Generar","Cancelar","", Null,False)
    cd.SetSize(100%x, 100%y)
    Wait For Dialog_Ready(pnl As Panel)
    pnl.LoadLayout("genPassword")
End Sub

El color del panel que contiene los checkbox quita el color desmarca la opción color del panel.
 
Top