软件在运行期,修改panel的位置与大小
来源:互联网 发布:谷歌看图软件下载 编辑:程序博客网 时间:2024/06/06 18:26
procedure TForm1.Panel1MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);begin ReleaseCapture; if (x>=0)and(x<=3) then begin if (y>=0)and(y<=3) then Panel1.Perform(WM_SysCommand,$F004,0); if (y>3)and(y<Panel1.Height-3) then Panel1.Perform(WM_SysCommand,$F001,0); if (y>=Panel1.Height-3)and(y<=Panel1.Height) then Panel1.Perform(WM_SysCommand,$F007,0); end else if (x>3)and(x<Panel1.Width-3) then begin if (y>=0)and(y<=3) then Panel1.Perform(WM_SysCommand,$F003,0); if (y>3)and(y<Panel1.Height-3) then Panel1.Perform(WM_SysCommand,$F012,0); if (y>=Panel1.Height-3)and(y<=Panel1.Width) then Panel1.Perform(WM_SysCommand,$F006,0); end else if (x>=Panel1.Width-3)and(x<=Panel1.Width) then begin if (y>=0)and(y<=3) then Panel1.Perform(WM_SysCommand,$F005,0); if (y>3)and(y<Panel1.Height-3) then Panel1.Perform(WM_SysCommand,$F002,0); if (y>=Panel1.Height-3)and(y<=Panel1.Width) then Panel1.Perform(WM_SysCommand,$F008,0); end;end;
procedure TForm1.Panel1MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);begin if (x>=0)and(x<=3) then begin if (y>=0)and(y<=3) then Panel1.Cursor:=crSizeNWSE; if (y>3)and(y<Panel1.Height-3) then Panel1.Cursor:=crSizeWE; if (y>=Panel1.Height-3)and(y<=Panel1.Height) then Panel1.Cursor:=crSizeNESW; end else if (x>3)and(x<Panel1.Width-3) then begin if (y>=0)and(y<=3) then Panel1.Cursor:=crSizeNS; if (y>3)and(y<Panel1.Height-3) then Panel1.Cursor:=crArrow; if (y>=Panel1.Height-3)and(y<=Panel1.Width) then Panel1.Cursor:=crSizeNS; end else if (x>=Panel1.Width-3)and(x<=Panel1.Width) then begin if (y>=0)and(y<=3) then Panel1.Cursor:=crSizeNESW; if (y>3)and(y<Panel1.Height-3) then Panel1.Cursor:=crSizeWE; if (y>=Panel1.Height-3)and(y<=Panel1.Width) then Panel1.Cursor:=crSizeNWSE; end;end;
0 0
- 软件在运行期,修改panel的位置与大小
- Delphi中运行时改变panel的位置及大小
- 数组是否能在运行期定义大小
- 修改xib里的控件位置大小
- 修改DialogFragment的大小和位置
- 关于在ViewDidLoad中修改控件的位置大小无效的问题
- 在运行时通过鼠标拖动移动控件位置及改变控件的大小
- 在运行时通过鼠标拖动移动控件位置及改变控件的大小
- 在运行时通过鼠标拖动移动控件位置及改变控件的大小
- UIView+Extension方便在开发时快速修改视图的位置大小
- 修改panel的html
- c# 在运行时实现Panel时的拖放
- 编译期与运行期
- 编译期与运行期
- MFC 设置窗口的大小与位置
- JS中位置与大小的获取
- 运行期绑定与编译期绑定的区别
- win8软件安装位置在哪?windows8软件安装位置修改教程
- C和C++动态内存分配和释放的区别
- 斜率优化专题4——bzoj 1911: [Apio2010] 特别行动队 题解
- ios的View的AutoresizingMask属性
- 理解傅立叶变换的本质——背景篇
- vim 颜色主题
- 软件在运行期,修改panel的位置与大小
- Ubuntu下bochs的安装配置-自己动手写操作系统环境搭建
- .net(C#)页面之间传递参数的几种方法
- 菜鸟问题:EditText有下划线显示,去除下划线
- scrum项目管理
- HDU2492 Ping pong 树状数组求逆序数
- 股票接口
- 字典树
- 善用Condition设置,解决Source Insight中的parse too complex问题