Hi All,
Apologies if already asked (I'm sure it must have been).
Is there any way to create a panel that is an orphan without a parent. I want to be able to create one and assign a height and width to it BEFORE it is used. The code below blocks me because the panel needs a parent...
Kind of complicated reasoning but I am simplifying my code and if I can create a panel & it's content then I can just pass that to the routine that does the custom dialog box. Otherwise I need to create the dialog box object before the panel and then the code gets messy again... Complicated like I said
Regards
Jon
Apologies if already asked (I'm sure it must have been).
Is there any way to create a panel that is an orphan without a parent. I want to be able to create one and assign a height and width to it BEFORE it is used. The code below blocks me because the panel needs a parent...
B4X:
Dim uxPanel As Panel : uxPanel.Initialize("uxPanel")
uxPanel.Width = 85%x
uxPanel.Height = 50dip
Kind of complicated reasoning but I am simplifying my code and if I can create a panel & it's content then I can just pass that to the routine that does the custom dialog box. Otherwise I need to create the dialog box object before the panel and then the code gets messy again... Complicated like I said
Regards
Jon