Hi
I am trying to understand the use of views within B4A, I am having problems getting a view to display.
I have created an app which contains one activity and two views, which works as I expect. These use a basic view generated in Designer which is then added to in the program. The structure ends up as (I think)
Activity
|
ScrollView
|
Panel
|
Canvas
I am using the canvas to display text to save creating hundreds of labels (as per previous post).
Now I want to add a further panel that overlays the Canvas when the screen is touched/clicked. I think the structure should now be:
____ Activity_____
|----------|
ScrollView Panel2
|
Panel
|
Canvas
I have created the layout in designer and loaded it into a new panel, but how do I get it to display when the first panel is clicked?
I attach an example program that is just the view management. I am sure I am missing something simple.
One further question, what is the difference between a click and a touch? or is it just the information that is returned that differs.
**Edit** I should have added that from the first screen select any item, then click on the second screen, this is where I want to display the new panel.
Thanks in advance.
Steve
I am trying to understand the use of views within B4A, I am having problems getting a view to display.
I have created an app which contains one activity and two views, which works as I expect. These use a basic view generated in Designer which is then added to in the program. The structure ends up as (I think)
Activity
|
ScrollView
|
Panel
|
Canvas
I am using the canvas to display text to save creating hundreds of labels (as per previous post).
Now I want to add a further panel that overlays the Canvas when the screen is touched/clicked. I think the structure should now be:
____ Activity_____
|----------|
ScrollView Panel2
|
Panel
|
Canvas
I have created the layout in designer and loaded it into a new panel, but how do I get it to display when the first panel is clicked?
I attach an example program that is just the view management. I am sure I am missing something simple.
One further question, what is the difference between a click and a touch? or is it just the information that is returned that differs.
**Edit** I should have added that from the first screen select any item, then click on the second screen, this is where I want to display the new panel.
Thanks in advance.
Steve
Attachments
Last edited: