当前位置:网站首页>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;
边栏推荐
猜你喜欢

自动化测试框架搭建 ---- 标记性能较差用例

每日一题,数组字符串的匹配问题

Based on STC8G2K64S4 single-chip microcomputer to display analog photosensitive analog value through OLED screen

【转】探秘钉钉的即时消息服务DTIM

Rust learning: 6.1_Slices of composite types

一文2600字手把手教你编写性能测试用例

js reduce

VS2013-调试汇编代码-生成asm文件-结构体内存布局-函数参数压栈-调用约定

The probability distribution and its application

Solve the problem that the win10win7win8 system cannot find the specified module and cannot register the desert plug-in
随机推荐
Compilation failure:找不到符号
Using the color picker
.NET-7.WPF学习经验总结
raid5的写性能,是不的比raid10快一些?
js reduce
如何设计神经网络结构,神经网络设计与实现
组合数模板
预测股票涨跌看什么指标,如何预测明天股票走势
Go-Excelize API源码阅读(十一)—— GetActiveSheetIndex()
Introduction to the C language to realize bubble sort
SCS【2】单细胞转录组 之 cellranger
WooCommerce 安装和 rest api 使用
Solve the problem that the win10win7win8 system cannot find the specified module and cannot register the desert plug-in
Obtain - 65 [chances] : "soldiers, subtlety also - 7-36 meter reading - defeat
短视频同城流量宣传小魔推有何优势?如何给实体商家带来销量?
Uni applet Tencent map polygon background transparency
Uni-app develops WeChat applet using local images as background images
IDLE development wordCount program (5)
浅谈C语言整型数据的存储
2022-08-01 Advanced Network Engineering (23) Advanced VLAN Technology - VLAN Aggregation, MUX VLAN