当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: unit Unit1; interface uses W
 

 

    摘要:关键字:dialog、对话框、resizable1、问题的提出问题来自stanley_xu,希望得到只有关闭按钮(还可以有帮助),左上也没有程序的图标并且能够更改窗口大小的对话框。vcl中为tform设置了borderstyle和bordericons属性,用以简化窗口样式的设置(否则就要调用setwindowlong和getwindowlong等api函数)。tformborderstyle和t......
    摘要:library dbinstall;{ important note about dll memory management: sharemem must be the first unit in your librarys uses clause and your projects (select project-view source) uses clause if your dll expo......


模拟delphi编辑窗体操作控件。。。

unit unit1;

uses 【程序编程相关:bass真是太好用了!

interface 【推荐阅读:Delphi 控制摄像头

  windows, messages, sysutils, variants, classes, graphics, controls, forms, 【扩展信息:在非XP操作系统下模拟的LockWork

  dialogs, extctrls, stdctrls, jpeg;

const lmousedown=false;

type

  tform1 = class(tform)

    edit1: tedit;

    panel2: tpanel;

    panel1: tpanel;

    panel3: tpanel;

    panel4: tpanel;

    panel5: tpanel;

    panel6: tpanel;

    panel7: tpanel;

    panel8: tpanel;

    panel11: tpanel;

    panel22: tpanel;

    panel33: tpanel;

    panel44: tpanel;

    panel55: tpanel;

    panel66: tpanel;

    panel77: tpanel;

    panel88: tpanel;

    button1: tbutton;

    procedure edit1mousemove(sender: tobject; shift: tshiftstate; x,

      y: integer);

    procedure edit1mousedown(sender: tobject; button: tmousebutton;

      shift: tshiftstate; x, y: integer);

    procedure edit1mouseup(sender: tobject; button: tmousebutton;

      shift: tshiftstate; x, y: integer);

    procedure formmousedown(sender: tobject; button: tmousebutton;

      shift: tshiftstate; x, y: integer);

    procedure button1mousedown(sender: tobject; button: tmousebutton;

      shift: tshiftstate; x, y: integer);

    procedure button1mousemove(sender: tobject; shift: tshiftstate; x,

      y: integer);

    procedure button1mouseup(sender: tobject; button: tmousebutton;

      shift: tshiftstate; x, y: integer);

  private

    { private declarations }

  public

    { public declarations }

  end;

var

  form1: tform1;

  s,a:boolean;

implementation

{$r *.dfm}

 procedure manipulatecontrol(control: tcontrol; shift: tshiftstate; x, y, precision: integer);

var sc_manipulate: word;

begin

  //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  //光标在控件的最左侧**********************************************************

  //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

       if (x<=precision) and (y>precision) and (y<control.height-precision)

  then begin

         sc_manipulate  := $f001;

         control.cursor := crsizewe;


...   下一页
    摘要:unit jisuanqiu; interface uses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls, extctrls; type tform1 = class(tform) button1: tbutton; button2......
» 本期热门文章:

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