merlin2049er Well-Known Member Licensed User Longtime User Dec 6, 2013 #1 I'm not sure what happened, I think I had the pop up working. I put most of my layouts in panels, and it doesn't work. Initialize it in globals... Code: Copy Dim scvText As ScrollView ' scrollview I've got this in my activity create Code: Copy Activity.LoadLayout("longtext") scvText.Panel.LoadLayout("LongText1") scvText.Panel.SendToBack scvText.Panel.Visible = False And when I like to pop it up, I've got the following code... Code: Copy Sub Label1_Click scvText.Panel.BringToFront scvText.Panel.Visible = True lblTitle.text ="About" lblText.text= Label1.text End Sub Last edited: Dec 6, 2013
I'm not sure what happened, I think I had the pop up working. I put most of my layouts in panels, and it doesn't work. Initialize it in globals... Code: Copy Dim scvText As ScrollView ' scrollview I've got this in my activity create Code: Copy Activity.LoadLayout("longtext") scvText.Panel.LoadLayout("LongText1") scvText.Panel.SendToBack scvText.Panel.Visible = False And when I like to pop it up, I've got the following code... Code: Copy Sub Label1_Click scvText.Panel.BringToFront scvText.Panel.Visible = True lblTitle.text ="About" lblText.text= Label1.text End Sub
Erel B4X founder Staff member Licensed User Longtime User Dec 8, 2013 #2 You shouldn't initialize objects in Sub Globals. Only declare them. Upvote 0
merlin2049er Well-Known Member Licensed User Longtime User Dec 8, 2013 #3 Yes, I meant dim. Works now. I've had to send the panel and text back and forth. Last edited: Dec 8, 2013 Upvote 0