B4J Question Resize pane inside of B4xPage

DarkoT

Active Member
Licensed User
Hi,
I need little help... It's posible to resize a view (tabpane) which is inside of B4XPage and loaded layout inside of pane?

I have tabPane inside of mainPage and want to resize all objects in tabPane (f.e. B4XTable):

1668422672424.png


Tnx...
Darko
 
Solution
Hi,
I need little help... It's posible to resize a view (tabpane) which is inside of B4XPage and loaded layout inside of pane?

I have tabPane inside of mainPage and want to resize all objects in tabPane (f.e. B4XTable):

View attachment 135992

Tnx...
Darko
I found the solution - just for info - when somebody will look for it...

Example code:
' handle resize event for MainPage - Panel
Private Sub pnlMain_Resize (Width As Double, Height As Double)

    ' handle all object inside of MainPanel
    For i = 0 To pnlMain.NumberOfViews - 1
        Dim view As B4XView = pnlMain.GetView(i)
        view.Height = Height
        view.Width = Width
    Next
    
End Sub

DarkoT

Active Member
Licensed User
Hi,
I need little help... It's posible to resize a view (tabpane) which is inside of B4XPage and loaded layout inside of pane?

I have tabPane inside of mainPage and want to resize all objects in tabPane (f.e. B4XTable):

View attachment 135992

Tnx...
Darko
I found the solution - just for info - when somebody will look for it...

Example code:
' handle resize event for MainPage - Panel
Private Sub pnlMain_Resize (Width As Double, Height As Double)

    ' handle all object inside of MainPanel
    For i = 0 To pnlMain.NumberOfViews - 1
        Dim view As B4XView = pnlMain.GetView(i)
        view.Height = Height
        view.Width = Width
    Next
    
End Sub
 
Upvote 0
Solution
Top