tufanv Expert Licensed User Longtime User Aug 12, 2017 #1 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
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 Aug 12, 2017 #2 Options to consider are: Set anchors in the views properties using the B4J Visual Designer, i.e. Vertical & Horizonal to BOTH. OR Use the views properties PrefWidth / PrefHeight which can be set f.e. in MainForm_Resize with conditions if required. Upvote 0
Options to consider are: Set anchors in the views properties using the B4J Visual Designer, i.e. Vertical & Horizonal to BOTH. OR Use the views properties PrefWidth / PrefHeight which can be set f.e. in MainForm_Resize with conditions if required.
tufanv Expert Licensed User Longtime User Aug 12, 2017 #3 rwblinn said: 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. Click to expand... Oh , I was trying to use perfwidth instead of prefwidth and couldnt find those . Thanks very much Upvote 0
rwblinn said: 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. Click to expand... Oh , I was trying to use perfwidth instead of prefwidth and couldnt find those . Thanks very much
Erel B4X founder Staff member Licensed User Longtime User Aug 13, 2017 #4 You can also set SetLayoutAnimated to set the width and height. Upvote 0