Android Question B4X Custom Dialog Disappearing Title

bocker77

Active Member
Licensed User
Longtime User
I am experiencing an issue with the title not appearing when increasing the panel height. The panel width works.

B4X:
    Dim p As B4XView = xui.CreatePanel("")
    p.SetLayoutAnimated(0, 0, 0, 300dip, 300dip)
    p.LoadLayout("RandD")
    p.Height = 55%y
    p.Width = 55%x
    Dim rsp As ResumableSub = Dialog.ShowCustom(p, "Yes", "No", "")
    Dim btnYes As B4XView = Dialog.GetButton(xui.DialogResponse_Positive)
    btnYes.SetBitmap(bmpBtnUp)
    Dim btnNo As B4XView = Dialog.GetButton(xui.DialogResponse_Negative)
    btnNo.SetBitmap(bmpBtnUp)
    Wait For (rsp) Complete (Result As Int)

No Dialog Title.png


If I comment out p.Height I get this.

Dialog Title.png


Before I moved this code block and inserted it in at another place in my code I was able to fix it by adding Dialog.PutAtTop = True. But for some reason now I can't get it to work by doing this. Not sure what's going on.
 

bocker77

Active Member
Licensed User
Longtime User
Thanks I will try your suggestion but still think there is an issue with the title not making an appearance on what I tried. In spite of my travails with this I am liking these B4X Dialogs!
 
Upvote 0
Top