B4J Question Setting a view's width in resize event

tufanv

Expert
Licensed User
Longtime User
Hello

Width and height is read only and I can't set a view's width and height within the mainform_resize event

How can i solve this ? I need to change the width and height when use changes the form size.

Thanks
 

rwblinn

Well-Known Member
Licensed User
Longtime User
Options to consider are:

Set anchors in the views properties using the B4J Visual Designer, i.e. Vertical & Horizonal to BOTH.
upload_2017-8-12_11-43-1.png


OR

Use the views properties PrefWidth / PrefHeight which can be set f.e. in MainForm_Resize with conditions if required.
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
Options to consider are:

Set anchors in the views properties using the B4J Visual Designer, i.e. Vertical & Horizonal to BOTH.
View attachment 58616

OR

Use the views properties PrefWidth / PrefHeight which can be set f.e. in MainForm_Resize with conditions if required.
Oh , I was trying to use perfwidth instead of prefwidth and couldnt find those .:) Thanks very much
 
Upvote 0
Top