Delphi

Delphi 程序动态改变皮肤
Delphi

Delphi 程序动态改变皮肤

69 0

前期准备:uses Vcl.Themes, Vcl.WinXCtrls;procedure TForm1.ComboBox1Change(Sender: TObject);beginTStyleManager.SetStyle(ComboBox1.Text);end;procedure TForm1.FormCreate(Sender: TObject);varStyleName: string;begin for StyleName in TStyleManager.StyleNames do

Delphi

Delphi GIF 动画建立

48 0

GIF 动画建立var Gif:TGifImage;begin //Setting the delay for each frame TGIFGraphicControlExtension.Create(Gif.Add(image1.Picture.Bitmap)).Delay := 300; TGIFGraphicControlExtension.Create(Gif.Add(image2.Picture.Bitmap)).Delay := 300; TGIFGraphicCo

Delphi

DELPHI 读取文本文件的最后一行

55 0

procedure TForm2.Button1Click(Sender: TObject);var StrLst:TStringList;begin StrLst:=TStringList.Create; StrLst.LoadFromFile('D:\text.txt'); ShowMessage(StrLst[StrLst.Count-1]); StrLst.Free;end;

Delphi

delphi 能否把.txt文件的数据导入到Access数据库中

47 0

在Form上放一个ADOConnection,连结指向目标Access库比如txt文件在c:\temp\aaaa.txt就执行ADOConnection.Connected := True;ADOConnection.Execute(’Select * Into abcd From [Text;Database=c:\temp].aaaa.txt’);方法2:procedure TForm1.btnimporttextClick(Sender: TObject);var TextFileVar: Tex

Delphi

Delphi中For In 语法应用实例

53 0

一、遍历 TStringsvar List: TStrings; s: string;begin List := TStringList.Create; List.CommaText := 'aaa,bbb,ccc'; for s in List do ShowMessage(s); List.Free;end;二、遍历数组var Arr: array[0..2] of Byte; i: Integer; b: Byte;begin for i := Low(A

Delphi  if  pos 多条件判断用法交流
Delphi

Delphi if pos 多条件判断用法交流

160 0

l两天后突然想起什么事没做!今天翻群聊天记录,把经典得记忆保存下。 河南-风 delphi学习网(16643506) 2020/2/13 21:28:23 if (pos('QQ',UserWenTi)>0) or (pos('qq',UserWenTi)>0) or (pos('微信',UserWenTi)>0) or (pos('支付宝',UserWenTi)>0) or (pos('抖音',Us

Delphi

Delphi中判断WebBrowser的页面是否加载完成

95 0

方法一: 在WebBrowser的OnDocumentComplete事件书写代码。方法二:WebBrowser1.Navigate(Url);while WebBrowser1.Busy or (WebBrowser1.ReadyState<>READYSTATE_COMPLETE) do Application.ProcessMessages;来源:https://www.cnblogs.com/xieyunc/p/4438266.html

Delphi

DELPHI如何生成一段时间内的所有日期

49 0

unit Unit1;interfaceuses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;type TForm1 = class(TForm) Memo1: TMemo; Button1: TButton; Button2: T