框到默认信息 [英] Box to Default Info

查看:69
本文介绍了框到默认信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两种形式。第一种形式是统计,第二种形式只是地图的图像。我已经绘制了框并在地图上将它们设置为透明,我希望能够单击图像并将与该地图区域相关联的数字插入到统计信息表单上的另一个字段中。我知道没有编码,只是想看看这是否可行?有任何想法吗?谢谢!

解决方案

是的。它应该是。您需要使用OnClick事件来处理为单独的控件分配正确的数字。


如果您需要更详细的帮助,您将不得不提供更详细的信息。当然。


我在表格2上的地图上绘制了方框。地图分为5个区域。如果事件发生在1区域,那么点击该区域中的任何地方都会很好,1将被输入到表格1的位置字段中。或者如果它发生在区域5中,则点击5然后输入表单1位置为5.这有帮助吗?


实际上,如果通过我已经绘制了框并在地图上将它们设置为透明你的意思是你已经使用矩形工具绘制了框,那么答案就必须是否定的。当您单击组成框的 上的时触发此绘制控件的 OnClick 事件,而不是单击内部的框的行。当你能看到它们时,完全点击一条线是不稳定的。当线条透明时这样做是不可能的。


您需要使用相同的策略,而是使用命令按钮。它们也可以设置为透明,并根据您的需要放置和调整大小,就像您对盒子一样。但点击按钮上的任何地方都会触发OnClick事件,就像NeoPa所说的那样,你必须用它去做你需要做的事情。


另外,as NeoPa说,你必须给我们更多细节才能得到更详细的帮助。


欢迎来到 Bytes


Linq ; 0)>

I have two forms. The first form is Stats and the second form is just an image of a map. I have drawn boxes and set them as transparent over the map and I want to be able to click on the image and have a number associated with that region of the map to be insert into another field on the Stats form. I know no coding and was just trying to see if this is possible? Any ideas? Thanks!

解决方案

Yes. It should be. You need to use the OnClick event to handle assigning the correct number to a separate control.

You''re going to have to give some more detailed information if you want more detailed help of course.


I have the boxes drawn on the map on Form 2. The map is divided up into 5 regions. If the incident happened in the 1 region, it would be nice to click anywhere in that region and the 1 would be inputted into the Location field of Form 1. Or if it happened in region 5 then click on 5 and it''s inputted into Form 1 Location as 5. Does that help?


Actually, if by "I have drawn boxes and set them as transparent over the map" you mean that you''ve drawn boxes using the Rectangle Tool then the answer would have to be no. The OnClick event of this drawn control fires when you click on the lines that make up the box, not when you click inside of the lines of the box. Clicking exactly on a line is precarious enough to do when you can see them. Doing so when the lines are transparent would be impossible.

You need to use the same strategy but use command buttons instead. They, too, can be set transparent, and placed and sized as you wish, just like you did with your box. But clicking anywhere on the button will fire the OnClick event, which, as NeoPa said, you''ll have to use to do whatever it is you need to do.

Also, as NeoPa said, you''ll have to give us more details in order to get more detailed help.

Welcome to Bytes!

Linq ;0)>


这篇关于框到默认信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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