当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

    摘要: 新装了rh9,但安装完后发现其只能mount fat/fat32 分区,由于我的机子上装的是win2k 使用的是ntfs文件系统,默认情况下linux无法 mount ntfs文区,听人说可以通过编译linux内核文件家载ntfs模块的方法实现,但苦于不知如何编译内核,请高手指教一二,万分感谢! ......
 ·关于domino安全的问题    »显示摘要«
    摘要: 谢谢大家: 当用户打开服务器的names.nsf库个人视图时,可以使用操作复制到个人通讯录,但是此时用户相关的id文件也会被考到用户本地,用户可以以其他人身份进入系统怎么行呢?不知道大家怎么解决这样的问题。请帮忙。 ......


一个关于form.onresize的问题

有一个标签label1.capion:=1;  
  定义hh为全局变量  
   
  然后添加form的onresize事件,如下:  
  hh:=hh+strtoint(label1.Caption);  
  label1.caption:=inttostr(hh);  
   
   
  运行程序  
  label1便显示成了2  
  然后每改变窗口大小一次,label1中的数值便为8   然后再拖动一次,又变成了64   ,512,4096,16384……  
  呵呵,onresize的工作原理到底是什么哦,搞不懂了  
  还有,怎么才能做到程序运行的时候,label1显示原来的   1   ,在拖动之后,变成2。  
  请问如何做到呢,谢谢。  
  另外,请问onCanResize和onresize有什么区别?谢谢!

NO.1   作者: swayi21

程序運行結果是正確的,  
  1 + 1 = 2  
  2 + 2 = 4  
  4 + 4 = 8  
  ........  
   
  onCanResize  
  Occurs   when   an   attempt   is   made   to   resize   the   control.  
   
  property   OnCanResize:   TCanResizeEvent;  
   
  Use   OnCanResize   to   adjust   the   way   a   control   is   resized.   If   necessary,   change   the   new   width   and   height   of   the   control   in   the   OnCanResize   event   handler.   The   OnCanResize   event   handler   also   allows   applications   to   indicate   that   the   entire   resize   should   be   aborted.  
   
  If   there   is   no   OnCanResize   event   handler,   or   if   the   OnCanResize   event   handler   indicates   that   the   resize   attempt   can   proceed,   the   OnCanResize   event   is   followed   immediately   by   an   OnConstrainedResize   event.  
   
   
  OnResize  
  Occurs   immediately   after   the   control   is   resized.  
   
  property   OnResize:   TNotifyEvent;  
   
  Use   OnResize   to   make   any   final   adjustments   after   a   control   is   resized.  
   
  To   modify   the   way   a   control   responds   when   an   attempt   is   made   to   resize   it,   use   the   OnCanResize   or   OnConstrainedResize   events   instead.  
 

NO.2   作者: jacky_shen

onresize  
  顾名思义就是大小改变时将执行的事件。


    摘要: 这不是一个vb问题,是个操作系统问题、请问怎么样才能禁止在win98中安装程序 ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE