Popup menu

Shay

Well-Known Member
Licensed User
Longtime User
Hi

I have few buttons, when clicking on one
I wish to open new small menu above the current layout with few other buttons
but disable the way to click on the button below this new menu (that will not cover the all screen) until you press the botton in this new window

thanks
 

Shay

Well-Known Member
Licensed User
Longtime User
AFAIK if i will issue panel, that will not cover the full screen
the button below the panel (on the none covered area) can still be pressed
and I don't want to add more code to disable/enable these buttons
how can I set to ignore all but the panel buttons
(there is such a way in VB - how can it be done here?)
 
Upvote 0

splatt

Active Member
Licensed User
Longtime User
AFAIK if i will issue panel, that will not cover the full screen
the button below the panel (on the none covered area) can still be pressed
and I don't want to add more code to disable/enable these buttons
how can I set to ignore all but the panel buttons
(there is such a way in VB - how can it be done here?)

The only way you can do what you want without covering the screen with your second panel is to disable the buttons that are visible on your other form. This is not Visual Basic, so it is wrong to assume that because you could do it in VB, you can do it in B4A. Remember that everything here is first converted to Java, so to a large extent, that enforces application behavior.
 
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
can you point me to the relevant thread

since I put panel click and i still can click on buttons below the panel

this is what I used

Dim Panel_Player as panel

if a=1 then
Panel_Player_Click
end if

Sub Panel_Player_Click
Panel_Player.Visible = True
End Sub
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
Check the link in my first post in this thread.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
Does your new panel cover the whole screen?
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
I'm assuming you following agrahams sugestion and have created an invisible panel the size of the screen.

If you called the panel panelBG then you just need two subs:

Sub panelBG_click

End Sub

and

Sub panelBG_longclick

End Sub

To consume the clicks to that panel.

Your popup should be added to the panelBG either in the designer or by code.

panelBG should be invisible to start with, the popup panel should not. When you want to display it uses panelBG.Visible = True. And panelBG.Visible = False to hide it.


Steve
 
Upvote 0
Top