相对于矩形而不是窗体绘制线 [英] Draw Line Relative to rectangle instead of form

查看:80
本文介绍了相对于矩形而不是窗体绘制线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个大小为500,500的表格,它有一个大小为800,800的矩形,我可以拖动该矩形,现在我想相对于矩形而不是表格来画一条线.即,我想在600到700的点上画一条线.怎么可能.
感谢

I have a form of size 500,500 and it has a rectangle of size 800,800 i can drag the rectangle,now i want to draw a line relative to rectangle instead of form .i.e i want to draw a line a point 600 to 700. how is possible.
Thanks

推荐答案

好吧,这里可能适用一些简单的常识.如果您的矩形已被拖动到100、50,并且您想从矩形的角开始画一条线,那么您如何确定从哪里开始呢?我的猜测是,从矩形的位置100、50开始.
Well, some simple common sense might apply here. If your rectangle has been dragged to 100, 50, and you want to start a line from the corner of the rectangle, how do you think you''d work out where to start ? My guess is, start at 100, 50, the position of the rectangle.


这篇关于相对于矩形而不是窗体绘制线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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