47.html

来自「以电子书的形式收集了VB一些常见问题解决方法,可以很方便的查找自己需要解决的问题」· HTML 代码 · 共 30 行

HTML
30
字号
<html>  <head>    <title>Re: How to get control's x, y position</title>  </head>  <BODY BACKGROUND="" BGCOLOR="white" TEXT="black" LINK="red" VLINK="#808080" ALINK="">    <center>      <h1>Re: How to get control's x, y position</h1>    </center><HR><p>Posted by <a href="mailto:yfwu@iname.com">小吴</a> on June 09, 1997 at 21:45:05:<p>In Reply to: <a href="45.html"><b>hot to get control's x, y position</b></a> posted by ccwu on June 07, 1997 at 08:55:41:<p>您所引用的问题和你的问题一点都不相干啊!<p>要动态产生元件,纯用 VB 的唯一方法就是使用元件阵列,用 ReDim 是没用的。<p>要侦测 Shift-F4, F5 等按键,你必须先把 Form 的 KeyPreview 设为 True,然后在 Form_KeyDown 中侦测是否有你要的键按下,再做处理。由于你是要重排 Form 上的元件,这必须自己动手写程式。<p>至于你最后所问决定 x,y 的位置的问题,我还是看不太懂,可否解译详尽一点。<p>:  我 想在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)<p><br><p><a name="followups">Follow Ups:</a><br><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--><br><HR><p></body></html>

⌨️ 快捷键说明

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