L lukeeyh New Member Jun 7, 2014 #1 Hey b4ppc, I have a problem with my coding what i want is button 11 to make my panel visible and then button 13 to make the panel invisible Code: Copy Sub Globals Dim Panel1 As Panel End Sub Code: Copy Sub Button11_Click Panel1.Initialize("") Panel1.Visible=True End Sub Code: Copy Sub Button13_Click Panel1.Initialize("") Panel1.Visible=False End Sub Panel1: Parent: Activity Button11: Parent: Activity Button13: Parent: Panel1 If you can help please do If this is in the wrong section please move it to correct section Thanks in advance
Hey b4ppc, I have a problem with my coding what i want is button 11 to make my panel visible and then button 13 to make the panel invisible Code: Copy Sub Globals Dim Panel1 As Panel End Sub Code: Copy Sub Button11_Click Panel1.Initialize("") Panel1.Visible=True End Sub Code: Copy Sub Button13_Click Panel1.Initialize("") Panel1.Visible=False End Sub Panel1: Parent: Activity Button11: Parent: Activity Button13: Parent: Panel1 If you can help please do If this is in the wrong section please move it to correct section Thanks in advance
D Diabolus Member Licensed User Longtime User Jun 7, 2014 #2 Remove --> Panel1.Initialize("") Upvote 0
L lukeeyh New Member Jun 7, 2014 #3 Diabolus said: Remove --> Panel1.Initialize("") Click to expand... when i remove it i say i need to Initialize the panel Upvote 0
Diabolus said: Remove --> Panel1.Initialize("") Click to expand... when i remove it i say i need to Initialize the panel
LucaMs Expert Licensed User Longtime User Jun 7, 2014 #4 set Panel1.Initialize("") only in Activity_Create Upvote 0
stevel05 Expert Licensed User Longtime User Jun 7, 2014 #5 You will need to supply more code to get the solution. Presumably you haven't loaded a layout that contains the panel, or added the panel to the activity with activity.loadlayout. Have you looked at some of the examples in the beginners guide? http://www.b4x.com/android/forum/threads/beginners-guide.9578/ Upvote 0
You will need to supply more code to get the solution. Presumably you haven't loaded a layout that contains the panel, or added the panel to the activity with activity.loadlayout. Have you looked at some of the examples in the beginners guide? http://www.b4x.com/android/forum/threads/beginners-guide.9578/
anallie0 Active Member Licensed User Longtime User Jun 7, 2014 #6 You inizialize the panel but don't add to the activity. When you click the button the code doesn't finds the panel. Upvote 0
You inizialize the panel but don't add to the activity. When you click the button the code doesn't finds the panel.