Panel over Activity

ssg

Well-Known Member
Licensed User
Longtime User
Hi Erel,

I have a panel which i load over an activity.

The panel covers the whole activity with some controls. I can click the buttons and sliders on the panel, all fine.

But when I click on any blank parts of the panel, the buttons under the panel (on the activity) gets clicked.

Is this an expected behaviour? Displaying a panel over other view should not allow me to click the underlying view right?

Please advice.

Thanks a bunch!
 

alfcen

Well-Known Member
Licensed User
Longtime User
I stumbled over this, too.
Just add:

B4X:
Sub Panel1_Click
   'blank, to avoid event firing on Activity views
End Sub

I does work fine for me, though.
 

slydog43

Member
Licensed User
Longtime User
Im having the same trouble, when I add this sub I get no diffences, are you guys on 1.2?
 

alfcen

Well-Known Member
Licensed User
Longtime User
We certainly are on 1.2.
Please try and bring your panel to front: Panel1.BringToFront
 

slydog43

Member
Licensed User
Longtime User
Thanks tried that and also requestfocus, but neither worked. Basically Im just trying to perform push/pop panel stack.

pnlTicket.Initialize("")
Activity.AddView(pnlTicket, 0, 0, 100%x, 100%y)
pnlTicket.LoadLayout("LayoutTicket")

to push

and to pop I would pnlTicket.RemoveView


something no good. When I'm on the pnlTicket I can still tap views that were displayed 1 panel before.

Thanks everything is good again,
pnlTicket.Initialize("") should have been pnlTicket.Initialize("pnlTicket")

Thanks
 
Last edited:
Top