N Nicolás Cieri Active Member Licensed User Oct 14, 2019 #1 I am using a scrollview in which I insert controls dynamically, everything works fine if at first I define the "contentheight" of the scrollview. I have a fixed controls by designer, and then in one panel I add the controls dynamically loading a layout of my control- But... If i set the contentheight at the end.. then my controls added dynamically don't appear, the scroll view is changing the contentheight because I can scroll more but my controls are not visible.
I am using a scrollview in which I insert controls dynamically, everything works fine if at first I define the "contentheight" of the scrollview. I have a fixed controls by designer, and then in one panel I add the controls dynamically loading a layout of my control- But... If i set the contentheight at the end.. then my controls added dynamically don't appear, the scroll view is changing the contentheight because I can scroll more but my controls are not visible.
N Nicolás Cieri Active Member Licensed User Oct 14, 2019 #2 To be more specific, the panel where I add the dynamic controls, returns to its original size after moving the contentheight. If you stop changing the contentheight, change the height of the panel, it does nothing anymore. Upvote 0
To be more specific, the panel where I add the dynamic controls, returns to its original size after moving the contentheight. If you stop changing the contentheight, change the height of the panel, it does nothing anymore.
N Nicolás Cieri Active Member Licensed User Oct 14, 2019 #3 If I log the heights of the panels after changing the contentheight, the heights are correct, but not visually Upvote 0
If I log the heights of the panels after changing the contentheight, the heights are correct, but not visually
klaus Expert Licensed User Longtime User Oct 14, 2019 #4 You need to provide more information. Post a small project as a zip file, so we could see what exactly you have done and how. Upvote 0
You need to provide more information. Post a small project as a zip file, so we could see what exactly you have done and how.
N Nicolás Cieri Active Member Licensed User Oct 14, 2019 #5 Yes, please try the attached sample.... I can't upload the file.. try the link.. https://farobyalvic.mx/test.zip The following error occurred The uploaded file is too large. test.zip Last edited: Oct 15, 2019 Upvote 0
Yes, please try the attached sample.... I can't upload the file.. try the link.. https://farobyalvic.mx/test.zip The following error occurred The uploaded file is too large. test.zip
klaus Expert Licensed User Longtime User Oct 15, 2019 #6 I tried to download the project but the link gives me an error: We are sorry, the page you are looking for doesn't exist !? Upvote 0
I tried to download the project but the link gives me an error: We are sorry, the page you are looking for doesn't exist !?
klaus Expert Licensed User Longtime User Oct 16, 2019 #8 I had a look at your project. All the objects you try to add dynamically are never added onto resumePanel.Panel, so they will not be displayed! I still don't really understand the logic behind your layout. You load a layout defined in the Designer, then you define a Panel in the code and load aother layout defined in the Designer onto this Panel. Then you add this Panel onto one object of the previous layout !? But you never add these objects onto resumePanel.Panel. Upvote 0
I had a look at your project. All the objects you try to add dynamically are never added onto resumePanel.Panel, so they will not be displayed! I still don't really understand the logic behind your layout. You load a layout defined in the Designer, then you define a Panel in the code and load aother layout defined in the Designer onto this Panel. Then you add this Panel onto one object of the previous layout !? But you never add these objects onto resumePanel.Panel.