Delphi

Winsoft Image Acquisition-SEO狼术

隐身守侯 提交于 2020-01-23 22:51:40
  Winsoft Image Acquisition for MacOS v1.3 for Delphi 10.3 Rio Full Source   用于Delphi 10.3 Rio的MacOS v1.3的Winsoft图像采集完整源代码   Delphi组件,用于从扫描仪设备获取图像。   使用ImageCaptureCore框架   可用于Delphi 10.3   注册版本中包含的源代码   应用程序中的免版税分配   Delphi component to acquire images from scanner devices.   uses ImageCaptureCore framework   available for Delphi 10.3   source code included in registered version   royalty free distribution in applications 来源: CSDN 作者: SEO-狼术 链接: https://blog.csdn.net/weixin_45330297/article/details/104078109

Delphi format的用法

前提是你 提交于 2020-01-23 19:19:01
一、Format函数的用法 Format是一个很常用,却又似乎很烦的方法,本人试图对这个方法的帮助进行一些翻译,让它有一个完整的概貌,以供大家查询之用: 首先看它的声明: function Format(const Format: string; const Args: array of const): string; overload; 事实上Format方法有两个种形式,另外一种是三个参数的,主要区别在于它是线程安全的,但并不多用,所以这里只对第一个介绍: function Format(const Format: string; const Args: array of const): string; overload; Format参数是一个格式字符串,用于格式化Args里面的值的。Args又是什么呢,它是一个变体数组,即它里面可以有多个参数,而且每个参数可以不同。 如以下例子: Format('my name is %6s',['wind']); 返回后就是 my name is wind 现在来看Format参数的详细情况: Format里面可以写普通的字符串,比如'my name is' 但有些格式指令字符具有特殊意义,比如"%6s" 格式指令具有以下的形式: "%" [index ":"] ["-"] [width] ["." prec] type 它是以"%"开始

Delphi窗体重绘API:DrawFocusRect,SetTextColor(),GetDc,GetWindowDC,MapWindowPoints,InflateRect

好久不见. 提交于 2020-01-23 19:09:34
WinAPI: DrawFocusRect - 绘制焦点矩形 用 SetTextColor() 设置颜色 功能 设置指定设备环境(HDC)的字体颜色 原型 WINGDIAPI COLORREF WINAPI SetTextColor (HDC, COLORREF) 也可以理解成 DWORD SetTextColor (HDC, DWORD),其中DWORD是关于颜色的参数,常用RGB()获取,如:SetTextColor(HDC,RGB(255,0,0)); //声明:  DrawFocusRect(   hDC: HDC;     {设备环境句柄}   const lprc: TRect {矩形结构}  ): BOOL;  //举例:  procedure TForm1.FormPaint(Sender: TObject);  var   MyRect: TRect;  begin   MyRect := Rect(20,20, 180,100);   DrawFocusRect(Canvas.Handle, MyRect);  end;  GetDc 该函数检索一指定窗口的客户区域或整个屏幕的显示设备上下文环境的句柄,以后可以在GDI函数中使用该句柄来在设备上下文环境中绘图。函数用于获得hWnd参数所指定窗口的客户区域的一个设备环境。所获得的设备环境可以是通用、类或者私有类型

How can I edit fields in pdf dynamically from Delphi code?

余生长醉 提交于 2020-01-23 17:50:27
问题 I have to update fields in pdf dynamically from Delphi code. Is it possible to classify a textbox from a checkbox in pdf file? If so, how to update from Delphi code? Is there any third party library available under GNU license for that matter? 回答1: If you can figure out how to run PHP from within Delphi (?), there is another tool TCPDF which is LGPL licensed close to GNU licensing. If you can figure out how to call Java from Delphi, then you could try PDFBox (an Apache project so the licence

Prevent firing events while scrolling TVertScrollBox

喜你入骨 提交于 2020-01-23 12:36:26
问题 Normally, while scrolling the contents of a "scroll box", no event functions are fired from the sub-components of a scroll box, e. g. in native apps. But in FireMonkey, if a TVertScrollBox contains sub-elements like TRectangle (which I want to use as menu entries for a custom menu), scrolling the TVertScrollBox on Android with a finger sometimes triggers the event functions (like OnClick) of the sub-elements and this is very confusing for me and our customers - They don't want to tap a

Prevent firing events while scrolling TVertScrollBox

不问归期 提交于 2020-01-23 12:34:10
问题 Normally, while scrolling the contents of a "scroll box", no event functions are fired from the sub-components of a scroll box, e. g. in native apps. But in FireMonkey, if a TVertScrollBox contains sub-elements like TRectangle (which I want to use as menu entries for a custom menu), scrolling the TVertScrollBox on Android with a finger sometimes triggers the event functions (like OnClick) of the sub-elements and this is very confusing for me and our customers - They don't want to tap a

Prevent firing events while scrolling TVertScrollBox

主宰稳场 提交于 2020-01-23 12:34:05
问题 Normally, while scrolling the contents of a "scroll box", no event functions are fired from the sub-components of a scroll box, e. g. in native apps. But in FireMonkey, if a TVertScrollBox contains sub-elements like TRectangle (which I want to use as menu entries for a custom menu), scrolling the TVertScrollBox on Android with a finger sometimes triggers the event functions (like OnClick) of the sub-elements and this is very confusing for me and our customers - They don't want to tap a

What could explain the difference in memory usage reported by FastMM or GetProcessMemoryInfo?

非 Y 不嫁゛ 提交于 2020-01-23 11:08:16
问题 My Delphi XE application is based on a single EXE using a local server DLL created by RemObjects and uses a lot of memory for a specific operation until it generates an exception saying there are not enough memory. So I'm trying to understand why and where this is happening so I placed various steps throughout my code where I report on memory usage. The problem is that I'm getting very different information based on the method used to get memory usage information: If I use the method

How to get CPU Level 1 cache (primary cache) information?

允我心安 提交于 2020-01-23 10:51:26
问题 I've tried to get CPU cache information by using WMI and it works great, but only for Level 2 and Level 3 cache, so my question is, how to get CPU Level 1 cache information ? 回答1: You can use the Win32_CacheMemory WMI class, try this code: {$APPTYPE CONSOLE} uses SysUtils, ActiveX, ComObj, Variants; procedure GetWin32_CacheMemoryInfo; const WbemUser =''; WbemPassword =''; WbemComputer ='localhost'; wbemFlagForwardOnly = $00000020; var FSWbemLocator : OLEVariant; FWMIService : OLEVariant;

How can I change the orientation of the label on a TPageControl?

筅森魡賤 提交于 2020-01-23 10:42:43
问题 I'm new to Delphi (again - I used Delphi back in 1994). I now have Delphi 2009 Pro. Coming from Java, I find the object inheritance very obscure. My users want tabbed pages with the tabs on the left. But, the TPageControl doesn't allow the tab label direction or orientation to be changed. They want the words on the tabs to read top to bottom with the letters rotated so they are in a "normal" orientation. With the tabs on the left the labels read from the bottom up with the letters rotated 90