当前位置:网站首页>Delphi实现的一个文件在线查询显示下载功能
Delphi实现的一个文件在线查询显示下载功能
2022-08-10 08:01:00 【joman5】
一直想做个类似360那样的在线文件检索并下载的功能PC端也就是winform端,今天有空简单实现了此功能,部分代码:
建立一个frame:
设置相关参数信息:
procedure TfMain.getdata;
var
item: TfrFileItem;
i: Integer;
begin
//这里只要设置 好对应的数据结构即可
cleardata;
for i := 0 to 10 do
begin
item := TfrFileItem.Create(self);
item.Name := 'item_' + i.ToString;
// item.Image1.Picture.LoadFromFile()//加载图片信息
item.Title.Caption := '文件名称' + i.ToString;
item.info.Caption := '这里用来进行文件信息描述';
item.pnSize.Caption := '20 M';
item.url := 'http://xxxxxx:8002/ver/testUpdate.zip';
item.Parent := pnContent;
item.Top := item.Height * (i + 1) + 1;
item.Align := alTop;
end;
end;
边栏推荐
- 时序动作定位 | ACGNet:弱监督时序动作定位的动作补充图网络(AAAI 2022)
- 短视频同城流量宣传小魔推有何优势?如何给实体商家带来销量?
- Go-Excelize API source code reading (11) - GetActiveSheetIndex()
- PLSQL学习第三天
- NPU架构与算力分析
- 941 · 滑动拼图
- 2022-08-01 网工进阶(二十四) STP进阶知识
- ATH10 sensor reads temperature and humidity
- Class Notes (7) (1) - #647. Find the root and the child (root)
- .NET-7.WPF学习经验总结
猜你喜欢
ATH10 sensor reads temperature and humidity
颜色选择器的使用
添加spark的相关依赖和打包插件(第六弹)
Rust learning: 6.1_Slices of composite types
CV+Deep Learning - network architecture Pytorch recurrence series - classification (3: MobileNet, ShuffleNet)
探索神经网络架构教程视频,设计神经网络的步骤
navicat for mysql 连接时报错:1251-Client does not support authentication protocol requested by server
IDLE开发wordCount程序(第五弹)
自动化测试框架搭建 ---- 标记性能较差用例
神经网络的三种训练方法,神经网络训练全过程
随机推荐
时序动作定位 | ASM-Loc:弱监督时序动作定位的动作感知片段建模(CVPR 2022)
[深入研究4G/5G/6G专题-56]: L3信令控制-5-无线承载管理
In the SQL SERVER database, if the data of the table is added, deleted, or modified, will the index of the table be recorded in the ldf log?
幂函数 指数函数 对数函数
添加spark的相关依赖和打包插件(第六弹)
DGIOT supports industrial equipment rental and remote control
delta method 介绍
30条实用MySQL优化法则
Johnson全源最短路
ABAP Data Types 和XSD Type 映射关系以及XSD Type属性
自动化测试框架Pytest(二)——前后置处理
90. (cesium house) cesium height monitoring events
uni 小程序腾讯地图polygon背景透明度
什么是长轮询
2022-08-01 Advanced Network Engineering (23) Advanced VLAN Technology - VLAN Aggregation, MUX VLAN
Rust学习:6.1_复合类型之切片
协同工具满足70%-90%的工作需求,成为企业香饽饽
[In-depth study of 4G/5G/6G topic-56]: L3 signaling control-5-radio bearer management
进程管理(动态的)
张驰课堂:老板会武术,谁也挡不住!六西格玛培训的魅力