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

Discussion in 'Android Questions' started by 李春雄, Feb 24, 2015.

  1. 李春雄

    李春雄 Member Licensed 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?

    Code:
    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
    Code:
    Sub Panel6_Touch (Action As Int, X As Float, Y As Float)
        SignatureCapture.Panel_Touch(SD, X, Y, Action)
    End Sub
     

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    It will not work with a modal dialog. Use a regular panel instead and bring it to front when needed.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice