当前位置:网站首页>[3.delphi common components] 6 scroll bar
[3.delphi common components] 6 scroll bar
2022-06-11 02:12:00 【Janeb1018】
6. Scroll bar
In general , Scrollbars are added automatically . If you plan to control the scrolling of the window by yourself , You can use the scroll bar (TScrollBar) Components . Its main properties are as follows :
| attribute | explain |
|---|---|
| LargeChange | Set when the user clicks the scroll bar ( Non arrow part ) Rolling distance |
| Max | Maximum scrollable value |
| Min | Minimum scrollable value |
| PageSize | Press down PgUp、PgDn The scrolling distance of the scroll bar when pressing the key |
| Position | Sets or returns the position of the square in the scroll bar |
| SmallChange | Click the arrows at both ends of the scroll bar to scroll the distance |
The main method :
| Method | explain |
|---|---|
| SetParams | This procedure is used to set Position、Max and Min attribute |
Major events :
| event | explain |
|---|---|
| OnScroll | Event triggered when the user operates the scroll bar , among , The second parameter returns the status of the scroll bar , The third parameter returns the position of the scroll bar box |
Example : Display the current position when the square position of the scroll bar changes , The interface is as follows :

The code is as follows :
procedure TForm1.ScrollBar1Scroll(Sender: TObject; ScrollCode: TScrollCode; var ScrollPos: Integer); begin Label1.Caption := ' The current position :' + IntToStr(ScrollBar1.Position); end;
边栏推荐
- Contest2902 - following Tang Kelian's programming: sequence structure question d: area 201502 question f: persistence of supporting college students in Ludian earthquake
- Data and electricity course design: circuit of full adder / subtractor
- ---排列数字---
- ASEMI场效应管12N65参数,12N65规格书,12N65特征
- In May, the main growth ranking list (platform of station B) of the single flying melon data up was released
- 中国各省份省会的坐标
- Win11怎么更改管理员头像?Win11更换管理员头像的方法
- [music] playing "over fire" based on MATLAB [including Matlab source code 1875]
- Byte Beijing 23K and pinduoduo Shanghai 28K, how should I choose?
- SAP smartforms page feed printing automatic judgment
猜你喜欢

Fb02 edit coding block field

QT database learning notes (I) basic concepts of database

Task03: building an offline material system

软件测试面试复盘:技术面没有难倒我,hr面却是一把挂

20n10-asemi medium and small power MOS transistor 20n10

腾讯测试开发岗面试上机编程题

Asemi FET 12n65 parameters, 12n65 specifications, 12n65 features

Start with interpreting the code automatically generated by BDC, and explain the trial version of the program components of sapgui

Within one month, the broadcasting volume has increased by 9million, and station B has three traffic growth passwords!

5月B站榜单丨飞瓜数据UP主成长排行榜(B站平台)发布
随机推荐
FB02编辑Coding Block字段
Deep exploration of functions with indefinite parameters in C language
---排列数字---
[QT] error: qapplication: no such file or directory solution
Complete tutorial on obtaining voltage from QGC ground station (APM voltage cannot be obtained from QGC)
Task03: building an offline material system
ASEMI场效应管12N65参数,12N65规格书,12N65特征
中國各省份省會的坐標
[Qt] Erreur: qapplication: No such file or directory Solution
JS Part 5
Clip paper details
Task02: basic use of database (MySQL)
Fb02 edit coding block field
Metersphere tutorial: how to assert when the returned result of the interface is null
14: 00 interview, came out at 14:08, the question is really too
What should be paid attention to in PMP registration? Special reminder
Task01: be familiar with the basic process of news recommendation system
Fallible point--
[matlab] basic image operation (point operation, arithmetic operation, scaling and rotation)
27岁女生零基础转行软件测试,合适吗?