旋转控制 [英] Rotate Control

查看:70
本文介绍了旋转控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

我读过一篇有关调整大小控制的文章.
我的学术工作需要这样做,也需要轮换...

您知道如何在执行应用程序时使用鼠标旋转控制吗?
对不起,我的英语好,我来自巴西...

Hi!

I read yout article about resize control... is excelent!!!

I need do this in my academic work, and need do rotate too...

you know how to do rotate control in my application in execution using mouse???

sorry for my english, i am from brazil...

推荐答案

要旋转控件,您需要覆盖其Paint事件并自己绘制控件.然后,您可以使用Graphics类中的RotateTransformTranslateTransform方法来旋转控件.
In order to rotate a control, you would need to override its Paint event and Paint the control yourself. Then you can make use of the RotateTransform and TranslateTransform methods in the Graphics class to rotate the controls.


1)在论坛底部的论坛中发布这样的问题您所指的文章.这里没人知道你在说什么文章.

2)没有人知道您的应用程序是什么,那么为什么要问该代码是否可以在您的应用程序中使用?无论如何,您应该能够针对您的目的修改代码,而无需询问本文的作者如何做.
1) Post questions like this in the forum at the bottom of the article you are referring to. Nobody here has any idea of what article you are talking about.

2) Nobody knows what your application is, so why are you asking if that code will work in your application? Anyway, you should be able to adapt the code for your purposes without asking the article''s author how to do everything.


这篇关于旋转控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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