Bug? Scrollview designer script

Prosg

Active Member
Licensed User
Longtime User
Hello,

I have this in a module :

Dim scrView As ScrollView
scrView.initialize(1000dip)
scrView.panel.LoadLayout("scrollPreferences")
pnlCandidat.AddView(scrView, 0,0,100%x,100%y)
scrView.Panel.Height = pnlPreferences.Height

in designer i have a script

pnlPreferences.Height = 1000dip
lblProsg.Bottom = pnlPreferences.bottom
lblProsg.SetLeftAndRight(10%x,90%x)

If i have THIS SCRIPT : lblProsg is not visible
If i have NO SCRIPT : lblProsg is visible in my app


It's the same for all view (button, label, edittextbox)

I don't understand why ?
 

Prosg

Active Member
Licensed User
Longtime User
I fix it :

Dim scrView As ScrollView
scrView.initialize(1000dip)
pnlCandidat.AddView(scrView, 0,0,100%x,100%y)
scrView.panel.LoadLayout("scrollPreferences") 'after addview and not before
scrView.Panel.Height = pnlPreferences.Height
 
Top