asales Expert Licensed User Longtime User Oct 21, 2016 #1 I have a second panel (semi-transparent and invisible) in layout that works like a custom dialog. When I click in button1 (in the main panel) of the second panel is made visible. I want that the second panel works like a modal panel, but if I click in the label in second panel, the event of button2 (in main panel) is consumed. How I can fix it? The project example is in attached. Thanks in advance for any tips. Attachments panelclick.zip panelclick.zip 9 KB · Views: 382
I have a second panel (semi-transparent and invisible) in layout that works like a custom dialog. When I click in button1 (in the main panel) of the second panel is made visible. I want that the second panel works like a modal panel, but if I click in the label in second panel, the event of button2 (in main panel) is consumed. How I can fix it? The project example is in attached. Thanks in advance for any tips.
LucaMs Expert Licensed User Longtime User Oct 21, 2016 #2 Add: Code: Copy Sub pDialogo2_Touch (Action As Int, X As Float, Y As Float) End Sub Upvote 0
asales Expert Licensed User Longtime User Oct 23, 2016 #3 LucaMs said: Add: Code: Copy Sub pDialogo2_Touch (Action As Int, X As Float, Y As Float) End Sub Click to expand... Thanks. Works fine! Did you know why I need a touch sub empty? Upvote 0
LucaMs said: Add: Code: Copy Sub pDialogo2_Touch (Action As Int, X As Float, Y As Float) End Sub Click to expand... Thanks. Works fine! Did you know why I need a touch sub empty?
klaus Expert Licensed User Longtime User Oct 23, 2016 #4 You could also use: Sub pDialogo2_Click End Sub This is needed to consume the event. By default Android transmits the events to underlying views. With an empty event routine this transmission is avoided. Upvote 0
You could also use: Sub pDialogo2_Click End Sub This is needed to consume the event. By default Android transmits the events to underlying views. With an empty event routine this transmission is avoided.
LucaMs Expert Licensed User Longtime User Oct 23, 2016 #5 klaus said: You could also use: Sub pDialogo2_Click Click to expand... There's a difference: if you use the click event you will hear the click sound Upvote 0
klaus said: You could also use: Sub pDialogo2_Click Click to expand... There's a difference: if you use the click event you will hear the click sound