i'm having a problem setting the height of a scrollview so that it adjusts to whatever the content of a label i tried measuring the height of the label using StrUtil like so
Dim su as Strul
su = MeasureMultilineTextHeight(Label1, StateModule.RepNames)
this works fine, so i try setting the height of the scrollview like this
scrollview1.panel.height = su + 20dip
physically i don't see any change when scrolling through the scrollview i don't see the height adjusting accordingly, i try debugging and i noticed that when i put my cursor over the line scrollview1.panel.height = su + 20dip it gives me this message "ScrollView1=(MyScrollview):Layout not available", does anyone know what this mean, i'm thinking this is the problem as to why setting the height for my scrollview is not working, any thoughts anybody!!!!!!
thanks,
Walter
:sign0163:
Dim su as Strul
su = MeasureMultilineTextHeight(Label1, StateModule.RepNames)
this works fine, so i try setting the height of the scrollview like this
scrollview1.panel.height = su + 20dip
physically i don't see any change when scrolling through the scrollview i don't see the height adjusting accordingly, i try debugging and i noticed that when i put my cursor over the line scrollview1.panel.height = su + 20dip it gives me this message "ScrollView1=(MyScrollview):Layout not available", does anyone know what this mean, i'm thinking this is the problem as to why setting the height for my scrollview is not working, any thoughts anybody!!!!!!
thanks,
Walter
:sign0163: