Android Question I have a use "Dialogs libs" The problem msgbox

李春雄

Member
Licensed User
Longtime User
I want the user press the button, use the signature panel to him, but I could not produce the panel above the signature, how can I do?

B4X:
Sub Button1_Click
    Dim cd As CustomDialog
    Dim pnl As Panel   
    pnl.Initialize("pnl")
    pnl.Color = Colors.White
    '====
    Dim Panel6 As Panel
    Panel6.Initialize("Panel6")
    Panel6.Color = Colors.Yellow
    'Activity.AddView(Panel6,50dip,50dip,150dip,150dip)
    cd.AddView(Panel6,50dip,5dip,150dip,150dip)
    '=====
    Canvas1.Initialize(Panel6)
    SD.Initialize
    SD.Canvas = Canvas1
    SD.Panel = Panel6
    SD.SignatureColor = Colors.Black
    SD.SignatureWidth = 5dip 'Stroke width
    ret = cd.Show("B4A Custom Dialog", "Yes", "No", "", Bmp)
End Sub

B4X:
Sub Panel6_Touch (Action As Int, X As Float, Y As Float)
    SignatureCapture.Panel_Touch(SD, X, Y, Action)
End Sub
 

Attachments

  • AutoMsgboxPanel.zip
    375.9 KB · Views: 178
Top