B4J Question changing Layout values

Patent

Active Member
Licensed User
Longtime User
Hi community,

i need to change values in the code from a loaded layout from the internal designer.
i.e. the "common properties" of the loaded design, which values are defined in the designer.

Is it possible to Change These values by code?
Reason why: i could Change the size of a Label in this layout, but the border of the whole design does not Change automatically, so i want do it manually.

any ideas?
thanks
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
You have two options:
1. Uncheck the Handle Resize Event option:
SS-2016-09-13_17.28.50.png


This means that the layout will only be resized once when it is loaded.

2. Keep that option and make any manual changes inside the Pane_Resize Event.
B4X:
Sub MainForm_Resize (Width As Double, Height As Double)
   'change the layout width here.
End Sub
 
Upvote 0
Top