在运行时调整对象大小! [英] Resize an object at runtime!

查看:118
本文介绍了在运行时调整对象大小!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的表格中有一个由Power Packs工具创建的形状,
如何允许用户在运行时调整大小(例如我们在设计时调整形状和按钮的大小)?
:rolleyes:
通常,我希望用户能够在运行时调整对象(按钮或形状等)的大小.
谢谢:rose:

I have a shape in my form which created by Power packs tools,
How can I allow user can resize it at runtime (like we resize the shape and buttons in design time) ?
:rolleyes:
in generally I wanna able user to resize the object (button or shapes,...) at runtime.
Thanks:rose:

推荐答案

您将不得不编写很多自定义代码来实现这一点.我将创建新类,这些类继承自您想要调整大小的控件,然后从那里开始.

也许已经有一些东西可以做到这一点.

Google是您的朋友.

我在这里用Google搜索在Codeproject上找到了这个:

运行时可调整大小的控件! [
You''re going to have to write a lot of custom code to get that to happenn. I would create new classes inherited from the controls you want to be able to resize, and go from there.

Maybe there''s something already out there that does this, too.

Google is your friend.

I found this right here on Codeproject with a google search:

Runtime resizable controls![^]

A little initiative goes a long way...


这篇关于在运行时调整对象大小!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆