B4J Question xChart: zoombar is not located well at start

peacemaker

Expert
Licensed User
Longtime User
Hi, All

Maybe anyone solved the situation - at first window opening in B4J, without Resize event, the xChart view has the zoombar not at the bottom placed. And sometimes its Visible is false.
Any help ?
 

peacemaker

Expert
Licensed User
Longtime User
Hi, klaus.

My project is huge now and, seems, i have solved now so:
B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
...
...
DynamicLines1.Width = 500dip    'pre-resize specially
End Sub

Without this pre-resizing the first window looked so:
1703165423963.png


If to make first opening on smaller resized window - the zoombar is located OK, but invisible:
1703165563401.png
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Ha ! Pre-resizing does not help with second situation of invisibility :(
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
SOLVED: once Base_Resize should be called:
B4X:
DynamicLines1.SetZoomIndexes(Min(ZoomBeginIndex, ZoomEndIndex), Max(ZoomBeginIndex, ZoomEndIndex))
DynamicLines1.Base_Resize(chart_container.Width, chart_container.Height)
 
Upvote 0
Top