开发者

Proportional Transformation

开发者 https://www.devze.com 2023-01-09 03:15 出处:网络
I have a form where user can add and position charts and co开发者_JS百科ntrols for a presentation like app. User can then change it to FullScreen mode, How do I change the size and position of control

I have a form where user can add and position charts and co开发者_JS百科ntrols for a presentation like app. User can then change it to FullScreen mode, How do I change the size and position of controls to keep a relative position and size?


Store the control sizes / positions as percentages of form width, and use these percentages when the form is resized to programmatically size the controls - that's a simple enough solution that should work nicely.

0

精彩评论

暂无评论...
验证码 换一张
取 消