当前位置:网站首页>Inno setup window drag learning
Inno setup window drag learning
2022-06-21 20:24:00 【Spring bud and summer lotus_ seven hundred and twenty-eight mil】
When installing packages , The installation interface can often be dragged , because Inno5.5 after ,WizardForm No longer supported OnMouseDown, So first we need to create a Label Overlay window , then label Set transparent , from Label To overload OnMouseDown.
The method is as follows :
Declare a system call api:
function ReleaseCapture() : longint; external '[email protected] stdcall';
inno set The script for is as follows :
Statement :
VAR
label_wizardform_title : TLabel;
// The entire area can be dragged
label_wizardform_title := TLabel.Create(WizardForm);
with label_wizardform_title do
begin
Parent := WizardForm;
AutoSize := False;
Left := 0;
Top := 0;
ClientWidth := WizardForm.ClientWidth;
ClientHeight := WizardForm.ClientHeight;
Caption := '';
Transparent := TRUE;
OnMouseDown := @WizardMouseDown;
end;
// If it is only the last test cation You can drag that :
label_wizardform_title := TLabel.Create(WizardForm);
WITH label_wizardform_title DO
BEGIN
Parent := WizardForm;
AutoSize := FALSE;
Left := 10;
Top := 5;
Width := WIZARDFORM_WIDTH_NORMAL;
Height := 20;
Font.Name := 'Microsoft YaHei';
Font.Size := 9;
Font.Color := clWhite;
Caption := '{#MyAppName} V{#MyAppVersion} install ';
Transparent := TRUE;
OnMouseDown := @WizardMouseDown;
END;
In statement : SendMessage(WizardForm.Handle, $112, $F012, 0); in $112 yes WM_SYSCOMMAND Of 16 Base number ,$F012 yes SC_MOVE | HTCAPTION
边栏推荐
- Excuse me, the exclusive resources in data integration can not connect to some databases normally. The following reasons do not seem to be true. Public funds
- 點雲轉深度圖:轉化,保存,可視化
- Flink CDC MongoDB Connector 的实现原理和使用实践
- MySQL 5.7编译安装
- mysql与oracle有没有区别
- 现在CDC支持到MySQL5.几了?之前好像说是5.7,今天发现5.6的MySQL数据源也能实时更新
- Recycleview lazy load failure (II)
- 07_ Knowledge that can change your perception
- JVM内存结构
- 最高月薪17K,只要心中有一片希望的田野,勤奋耕耘将迎来一片翠绿~
猜你喜欢

【微信小程序】协同工作和发布 数据绑定

贪吃蛇游戏项目完整版

Assembly language greedy snake and Tetris dual task design implementation details (III) -- Tetris detailed design

MySQL-CentOS安装MySQL8

HMS core machine learning service ID card identification function to achieve efficient information entry

Snake game project full version

What statements are added to MySQL

How to query all tables in MySQL

谷粒学院P40~43

Flink CDC MongoDB Connector 的实现原理和使用实践
随机推荐
Point cloud to depth map: conversion, saving, visualization
Gradle下载与安装配置
贪吃蛇游戏项目完整版
07_ Knowledge that can change your perception
Uniapp obtains login authorization and mobile number authorization (sorting)
【时序预测完整教程】以气温预测为例说明论文组成及PyTorch代码管道构建
mysql如何实现分组求和
HMS core machine learning service ID card identification function to achieve efficient information entry
细节、MYSQL_DATE_FORMAT()_函数_详解(记得收藏)
Summary of methods for NSIS to run bat
Implementation of assembly language greedy snake and Tetris dual task design (II) -- detailed design of greedy snake
国家认证--软件评测师考试要求
《跟老卫学 HarmonyOS 开发》:以父之名·码力全开!写段HarmonyOS祝父亲节
MySQL 5.7编译安装
How to query the data in MySQL
MySQL必知必会-第九章-用正则表达式进行搜索
IAR重大升级,支持VS Code,ST发布第一个带有处理单元的传感器
NetCore3.1 ping网络是否畅通及获取服务器Cpu、内存使用率
mysql与oracle有没有区别
新手使用APICloud可视化开发搭建商城主页