J JoshyDEWstive Member Licensed User Longtime User Jan 4, 2015 #1 Hi all, How do i hide views and panels, i want to make like a menu but I dont know how to hide the panel when its done being used. And a button that shows it. Thanks
Hi all, How do i hide views and panels, i want to make like a menu but I dont know how to hide the panel when its done being used. And a button that shows it. Thanks
NJDude Expert Licensed User Longtime User Jan 4, 2015 #2 Views have a VISIBLE property, you can set that to TRUE or FALSE. Upvote 0
J JoshyDEWstive Member Licensed User Longtime User Jan 4, 2015 #3 NJDude said: Views have a VISIBLE property, you can set that to TRUE or FALSE. Click to expand... I type the View name and it shows red, How do i change it Upvote 0
NJDude said: Views have a VISIBLE property, you can set that to TRUE or FALSE. Click to expand... I type the View name and it shows red, How do i change it
NJDude Expert Licensed User Longtime User Jan 4, 2015 #4 Can you post some of your code?, for example, if I want to change the visibility of a panel I do: Code: Copy Private Panel1 As Panel ... Panel1.Visible = FALSE Upvote 0
Can you post some of your code?, for example, if I want to change the visibility of a panel I do: Code: Copy Private Panel1 As Panel ... Panel1.Visible = FALSE
J JoshyDEWstive Member Licensed User Longtime User Jan 4, 2015 #5 Nope doesnt work: CODE: Code: Copy Sub Credits_Click Private DevMenuOne As Panel DevMenuOne.Visible = False Msgbox("Made by JoshyDEWstive","Credits") DevMenuOne.Visible = True End Sub Thanks Upvote 0
Nope doesnt work: CODE: Code: Copy Sub Credits_Click Private DevMenuOne As Panel DevMenuOne.Visible = False Msgbox("Made by JoshyDEWstive","Credits") DevMenuOne.Visible = True End Sub Thanks
NJDude Expert Licensed User Longtime User Jan 4, 2015 #6 Well my friend, I suggest you read the documentation first, what I posted was just a code snippet, you can find links to the documentation on my signature below. Upvote 0
Well my friend, I suggest you read the documentation first, what I posted was just a code snippet, you can find links to the documentation on my signature below.
LucaMs Expert Licensed User Longtime User Jan 4, 2015 #7 JoshyDEWstive said: Nope doesnt work: CODE: Code: Copy Sub Credits_Click Private DevMenuOne As Panel DevMenuOne.Visible = False Msgbox("Made by JoshyDEWstive","Credits") DevMenuOne.Visible = True End Sub Thanks Click to expand... A panel (and any other view) must be added to an Activity or to a Panel, otherwise they are not created. Then you could write: Code: Copy Private DevMenuOne As Panel Activity.AddView(DevMenuOne, ...) (I suggest pnlDevMenuOne so you can see immediatly that DevMenuOne is a Panel) MsgBox needs no additional Panel. Upvote 0
JoshyDEWstive said: Nope doesnt work: CODE: Code: Copy Sub Credits_Click Private DevMenuOne As Panel DevMenuOne.Visible = False Msgbox("Made by JoshyDEWstive","Credits") DevMenuOne.Visible = True End Sub Thanks Click to expand... A panel (and any other view) must be added to an Activity or to a Panel, otherwise they are not created. Then you could write: Code: Copy Private DevMenuOne As Panel Activity.AddView(DevMenuOne, ...) (I suggest pnlDevMenuOne so you can see immediatly that DevMenuOne is a Panel) MsgBox needs no additional Panel.