7475.html

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

HTML
23
字号
<html>
  <head>
    <title>Re: 按钮...</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>Re: 按钮...</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by wei on November 19, 1998 at 17:34:10:<p>
In Reply to: <a href="7452.html">按钮...</a> posted by wingue on November 18, 1998 at 19:38:12:<p>
: 想必大家都用过IE4.0或OFFICES97吧!<br>: 但大家有没有想过在工具列上的按钮<br>: 程式码是怎么写出来的呢??<br>: 按钮的特色是:<br>: 当滑鼠的游标移到上面时,按扭会浮起<br>: 来,按下去时会有凹陷下去...(当然,<br>: 按下去时能够触发事件...)<br>: 请热心人士告诉小弟,<br>: 感激不尽....<p>My solution: when mouse moveover an object (e.g,<br>Label, PictureBox, ...), draw a rectanglar with 3-D<br>effects, with the same size(little bigger) and position<br>as the obj. <br>You need to use MouseMove, up, down events to detect when to draw,<br>when undraw,  and border color, and so on.<br>To draw a 3-D rectanglar is easy if you know how<br>ro draw a line.<br>I don't know if there is any better method to do such things. <br>I used above method in my code, which seems to work the same way.
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 7475-->
</ul><!--end: 7475-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

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