Invisible but active view

boten

Active Member
Licensed User
Longtime User
This might have been asked before but I couldn't find the answer so here goes:

Panel1 contains a button (btn1)
Panel2 contains other views, panel2's color is Black, panel2 is in front of panel1 (panel2.BringToFront)

When Panel2 is made visible, the btn1 (and all of Panel1) can't be seen, as it is "below" panel2
BUT - clicking in the (empty in Panel2) area where btn1 is located fires the Click event of btn1.

So how can the click be "ignored" if the panel on which the button resides is hidden by another panel.
 
Top