delphi10.3中UpDown1使用
摘要:通过Associate与其他控件相关连 与spinButton类似
阅读全文
delphi 中tButtonColor颜色选择
摘要:ButtonColor1.SymbolColor; 文本说明
阅读全文
Delphi10.3接收从文件管理器拖放过来的文件名
摘要:【转】Delphi 文件拖放 - laymond - 博客园 用到 ShellAPI 单元的两个函数: DragAcceptFiles、DragQueryFile;用 DragAcceptFiles(窗口句柄, True); 以让窗口能够接受拖放;然后就等待 WM_DROPFILES 消息, 并用
阅读全文
Delphi10.3文件类型为默认打开方式时,接收 文件名参数
摘要:procedure TFormMain.FormCreate(Sender: TObject); begin if paramCount>0 then begin DisplayPDF(ParamStr(1)); end; end;
阅读全文
delphi自带双列ListBox的Demo
摘要:通过网盘分享的文件:双列ListBox的Demo.rar链接: https://pan.baidu.com/s/1F_n8Uja15lELabFCBIk39g?pwd=cf29 提取码: cf29
阅读全文
Delphi里用ListView实现PDF左边页面选择功能
摘要:01】拖一个ListView到页面上,双击它 02】ViewStyle为vsReport 03]增加页码 var item: TListItem; i:integer; begin ListView1.Items.Clear; for I := 0 to Pdf.PageCount-1 do beg
阅读全文
delphi 判断系统是不是 win10
摘要:delphi 判断系统是不是 win10_delphi判断windows-CSDN博客 type NET_API_STATUS = DWORD; _SERVER_INFO_101 = record sv101_platform_id: DWORD; sv101_name: LPWSTR; sv101
阅读全文
memo1 通过行号 跳转到 指定行
摘要:procedure TForm3.ToolButton11Click(Sender: TObject); //memo1 通过行号 定位 指定行 var LineNumber, StartPos, LineLength: Integer; begin LineNumber := strtoint(e
阅读全文
Delphi10.3中Ctrl+J添加代码模板Code_Template
摘要:https://docwiki.embarcadero.com/RADStudio/Sydney/en/Live_Templates 添加Jump Point跳转点 <?xml version="1.0" encoding="utf-8" ?> <codetemplate xmlns="http:/
阅读全文
修改.dproj的<DCC_ExeOutput>标签,可以控制exe的输出目录
摘要:Delphi 中.dproj 文件解析(二、详细解析)-CSDN博客 注意是 反斜杠 <DCC_ExeOutput>c:/</DCC_ExeOutput> 总结 .dproj文件是项目入口总控文件,由Delphi开发环境创建的,不清楚不要轻易修改; 在Delphi的开发环境已经都编译通过,然后需要自
阅读全文
Delphi10.3里 Memo1/richedit1 查找对话框粘贴 问题解决
摘要:删除 自己 写 粘贴 过程, uses Clipbrd ; var ClipboardText: string; begin ClipboardText := Clipboard.AsText; // 08 ]粘贴时,将 剪贴板文本中的 TAB 字符 替换为 四个空格 ClipboardText :
阅读全文
在Delphi中将 任意 文件 存入,取出 SQLite数据库,主要是流的操作
摘要:通过网盘分享的文件:PDF2DB-V3.rar链接: https://pan.baidu.com/s/1exGp_QC1Das1TPAhnT0Q9A?pwd=44z2 提取码: 44z2 在Delphi中将JPG存入SQLite数据库 CREATE TABLE "Images" ( "ID" INT
阅读全文
delphi10.3的TreeVivew从DB建树
摘要:通过网盘分享的文件:TreeViewFromDB.rar链接: https://pan.baidu.com/s/1ZJhxLBM_YQ07fpfga0hMmQ 提取码: v893 ExpressDBTreeView学习(06) procedure TForm1.AddChildNodes(TreeV
阅读全文
Delphi中Memo1左侧显示行号
摘要:通过网盘分享的文件:lineNumberV3.rar链接: https://pan.baidu.com/s/1TqgDDv6VDIeQGgNYhMzohg 提取码: ws4u 当前行号红色显示,5进制显示 01]拖一个PaintBox和Memo到界面上,PaintBox1与Memo1的字体相同,字体
阅读全文
DBLookupCombobox实现下拉联动
摘要:DBLookupCombobox实现下拉联动 通过网盘分享的文件:City.rar链接: https://pan.baidu.com/s/1L70ahH9iBjdydfLHGkLLEw 提取码: pmmd 这次用DBLookupCombobox实现省份-城市-地区的下拉联动,用以学习DBLookup
阅读全文
Delphi 10.3之 TCategoryPanelGroup
摘要:制作过程:先添加一个 TCategoryPanelGroup, 再从其右键菜单 -> New Panel, 反复添加三个 TCategoryPanel. Delphi 10.3之 TCategoryPanelGroup[1]: ChevronAlignment 等 Delphi 2009 之 TCa
阅读全文
为什么要用状态栏+Time1来提示memo1的错误提示信息
摘要:因为Memo1和Showmessage都是有焦点的,会同时运行,结果是,点了Showmessage的确认信息,Memo1的选择 文本会取消,所以不能用Showmessage var aCode:integer; //记录 memo1错误代号 procedure TForm3.UpdateStatus
阅读全文
delphi tcolor 颜色 转成 网页颜色 格式
摘要:procedure TForm3.ToolButton9Click(Sender: TObject); // 字体颜色 function ColorToHtml(DColor:TColor):string; var //delphi tcolor 颜色 转成 网页颜色 格式 tmpRGB : TCo
阅读全文
Delphi10.3下ProgressBar1的使用
摘要:Delphi10.3状态栏上显示进度条/图片 {三种方法等价} {1}ProgressBar1.Position:=ProgressBar1.Position+10; {2}ProgressBar1.StepBy(10); {3} ProgressBar1.Step:=10 ; ProgressBa
阅读全文
string转TStringList的ExtractStrings在Delphi10.3
摘要:var s: string; ACount,i: Integer; AStrings: TStringList; begin s := 'about: #delphi; #pascal, programming'; AStrings := TStringList.Create; ACount :=
阅读全文