Object does not change

rkmoray

Active Member
Licensed User
Longtime User
I have an app with 3 panels that change from a menu (main, setup,about)
When I select a differnt menu, the panel changes (Hard coded color to make sure which panel is active) but the contents does not show when fired.
Here is a sample when I click the about menu item.

Sub mnuPage3_Click
pnlPage1.Visible = False
pnlPage2.Visible = False
pnlPage3.Visible = True
OS.Initialize("OS")
Label1.Text=OS.AvailableMemory
Label2.Text=OS.Codename
Label3.Text=OS.Device
Label4.Text=OS.Hardware

IF I used a message box instead of a label, it gets fired.
Why does the label not show the new value?
End Sub
 

klaus

Expert
Licensed User
Longtime User
Unfortunately with the code you post it's impossible to give you a concrete advice.
You should post your project as a zip file or at least give more information.
Are you shure that Label1, Label2 and Label3 are on pnlPage3 ?

Best regards.
 
Upvote 0

rkmoray

Active Member
Licensed User
Longtime User
Yes, they are all on panel3, and they are all initialized as well.
I have the same issue on panel1. When I change to the setup page is made, it should reflect the change in panel1, and it does not.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Why don't you post your project so we could see exactly what you have done, how and where ? And this the same conditions as you.
The problem is not in the code you posted !
So we need to try to guess what the problem could be.
B4X:
Yes, they are all on panel3, [COLOR=Red]and they are all initialized as well[/COLOR].
As we don't know what views you initialized and how, impossible to give an advice !
Do you have a layout file ?
How did you initialize the views ?
etc. ?!

Best regards.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…