当前位置:网站首页>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;
边栏推荐
- 复杂AB实验
- Obtain - 65 [chances] : "soldiers, subtlety also - 7-36 meter reading - defeat
- 卷积神经网络卷积层公式,卷积神经网络运算公式
- Using the color picker
- The sixteenth day & the basic operation of charles
- 进程管理(动态的)
- 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?
- Class Notes (7) (1) - #647. Find the root and the child (root)
- iwemeta元宇宙:阿里首任COO:如何打造销售铁军
- .NET-7.WPF学习经验总结
猜你喜欢
随机推荐
Uni-app develops WeChat applet using local images as background images
FFT模板
JS reduce
The precise effect of network integration promotion outsourcing in the era of Internet of Things-Shenzhen Win-Win World News
CV+Deep Learning——网络架构Pytorch复现系列——classification(三:MobileNet,ShuffleNet)
Process management (dynamic)
Relaxation class: the boss will martial arts, who also can not hold up against!The charm of six sigma training
The sixteenth day & the basic operation of charles
DGIOT三千万电表集抄压测
PLSQL学习第二天
2022-08-01 网工进阶(二十三) VLAN高级技术-VLAN聚合、MUX VLAN
Rust学习:6.5_复合类型之数组
StringUtils的具体操作
占位占位1
34. Talk about why you want to split the database?What methods are there?
人工神经网络工作原理,神经网络的工作原理
34. 谈谈为什么要拆分数据库?有哪些方法?
Go-Excelize API source code reading (11) - GetActiveSheetIndex()
.NET-7.WPF学习经验总结
Compilation failure:找不到符号