⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 45.html

📁 VB技巧问答10000例 VB技巧问答10000例
💻 HTML
字号:
<html>  <head>    <title>hot to get control's x, y position</title>  </head>  <BODY BACKGROUND="" BGCOLOR="white" TEXT="black" LINK="red" VLINK="#808080" ALINK="">    <center>      <h1>hot to get control's x, y position</h1>    </center><HR><p>Posted by <a href="mailto:chingchun@usa.net">ccwu</a> on June 07, 1997 at 08:55:41:<p>On 28 May 1997 04:36:13 GMT, sena.bbs@bbs.ncku.edu.tw (不平衡的天秤座)<br>wrote:<br>>  如果我在一个form上放了许多的object<br>>  如何可以用vb得到相对于form的x,y位置<br>>  而不是我移动到 A object 上<br>>  就得到相对于 A object的x,y位置<br>>  我希望只要我在form之内<br>>  所得到的都是相对于form的座标<p> 我想我的问题很类似--<br> 我 想在form or container 放一些动态的control, 然后根据目前form or<br>container 大 小 自 动 排 列 [即win31的非重叠显示(shift-f4),<br>|重叠显示(shift-f5) 功能], [in win95 status bar right click ]<p> 我的考虑方向--<br> 1-- 用redim control(???) or new mycontrol as control 那种可行 or<br>较好? 还是...<br>2-- shift-f4, shift-f5  功能 如何做?<br> 先取得 form or container's width and height, then 要放几个 control<br> 再决定contro l大小 then move control to x, y position, 问题在如何<br> 取得 x, y  位置?<p>---  请指导指导( nobody answer me in newsgroup, i'm in a dead corner)<br><br><p><a name="followups">Follow Ups:</a><br><ul><!--insert: 45--><!--top: 47--><li><a href="47.html"><b>Re: How to get control's x, y position</b></a> 小吴 <i>21:45:05 6/09/97</i>(<!--responses: 47-->2)<ul><!--insert: 47--><!--top: 49--><li><a href="49.html"><b>Re: How to get control's x, y position</b></a> ccwu <i>09:17:49 6/11/97</i>(<!--responses: 49-->1)<ul><!--insert: 49--><!--top: 52--><li><a href="52.html"><b>Re: How to get control's x, y position</b></a> 小吴 <i>03:27:24 6/12/97</i>(<!--responses: 52-->0)<ul><!--insert: 52--></ul><!--end: 52--></ul><!--end: 49--></ul><!--end: 47--></ul><!--end: 45--><br><HR><p></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -