delphi-xe6

Can I modify a constant in the RTL class System.Classes.TStream and rebuild it at runtime in Delphi XE6?

纵饮孤独 提交于 2019-11-29 03:52:12
I am trying to work around a known ugly performance limitation in System.Classes.pas, which has a 1980s era constant buffer limit ($F000) that looks like this: function TStream.CopyFrom(const Source: TStream; Count: Int64): Int64; const MaxBufSize = $F000; .... This is causing major performance penalties in our Delphi application. In delphi XE2 through XE5, we were able to modify this and use one of the following approaches: I could modify the Delphi sources, and then, by invoking dcc32.exe from a batch file, rebuild the System.Classes.dcu file in the Delphi library folder. I realize this is

How to make hovering over Minimize, Maximize, and Close buttons behave?

给你一囗甜甜゛ 提交于 2019-11-29 01:15:11
In a Delphi application, when you hover over a border icon, e.g.: Minimize Maximize Restore it doesn't behave correctly: Compare to an application that does behave correctly: Step to Reproduce Click File , New , VCL Forms Application - Delphi Click Run (F9) Hover over the Minimize, Maximize, or Close buttons. How to fix? Windows 10, 64-bit (running natively on desktop PC) Delphi XE6 Edit - It also fails with Delphi 7: and in Delphi 5: and in Delphi 4: I assumed (i.e. was afraid) that it was caused by the ThemeServices engine; where they might have thought it was cool to not honor the user's

String.Split works strange when last value is empty

依然范特西╮ 提交于 2019-11-28 12:09:22
I'd like to split my string to array but it works bad when last "value" is empty. See my example please. Is it bug or feature? Is there any way how to use this function without workarounds? var arr: TArray<string>; arr:='a;b;c'.Split([';']); //length of array = 3, it's OK arr:='a;b;c;'.Split([';']); //length of array = 3, but I expect 4 arr:='a;b;;c'.Split([';']); //length of array = 4 since empty value is inside arr:=('a;b;c;'+' ').Split([';']); //length of array = 4 (primitive workaround with space) This behaviour can't be changed. There's no way for you to customise how this split function

Delphi Change main form while application is running

家住魔仙堡 提交于 2019-11-27 13:46:39
I have this problem. When I hide my main form, then the taskbar icon of my application is also hidden. I saw a new question about this problem as well and the answers didn't really help. They suggested to minimize it, but I do not want to minimize the application. Is it possible to change the main form while the application is already running? for instance. I have two forms. when I want to hide the one form and show the other form, then the taskbar icon should stay at the taskbar and the main form should switch to the other form. I am using Delphi XE6 and it is a VCL Forms application. I have

Detect when the active element in a TWebBrowser document changes

故事扮演 提交于 2019-11-27 08:46:51
Is there any event I can hook into to detect when the active element on a web page changes? For example, when a the user focuses an edit box. I know I could check the active element in a timer, but I'd rather avoid this if possible. This isn't - quite - a complete answer to your q, but hopefully will get you most of the way there. (For future readers who arrive here via a similar q: Suppose you have an type library import unit for an automation/Com server like SHDocVw, MSHTML or the one for MS Word. Sometimes, Delphi's type library importer adds event support to the Delphi TObject-descendant

PAServer can't load dyld: Library

▼魔方 西西 提交于 2019-11-27 08:23:17
问题 I am building a Desktop App for Windows and Mac. I am working on a Mac, with Delphi Rad Studio XE6 installed on my Parallel Windows 7. When Im running in Win32 everything runs ok, when I try to run in OSX , my PAServer 14.0 says dyld: Library not loaded: @rpath/libcgunwind.1.0.dylib Referenced from: /Users/administrator/PAServer/scratch-dir/PC-Dionis/Project1.app/Contents/MacOS/Project1 Reason: image not found I read as much as possible in SO, I tried to manually copy the libcgunwind.1.0

Converting UnicodeString to AnsiString

巧了我就是萌 提交于 2019-11-27 01:24:26
问题 In the olden times, i had a function that would convert a WideString to an AnsiString of the specified code-page: function WideStringToString(const Source: WideString; CodePage: UINT): AnsiString; ... begin ... // Convert source UTF-16 string (WideString) to the destination using the code-page strLen := WideCharToMultiByte(CodePage, 0, PWideChar(Source), Length(Source), //Source PAnsiChar(cpStr), strLen, //Destination nil, nil); ... end; And everything worked. I passed the function a unicode

Delphi Change main form while application is running

旧城冷巷雨未停 提交于 2019-11-26 18:19:37
问题 I have this problem. When I hide my main form, then the taskbar icon of my application is also hidden. I saw a new question about this problem as well and the answers didn't really help. They suggested to minimize it, but I do not want to minimize the application. Is it possible to change the main form while the application is already running? for instance. I have two forms. when I want to hide the one form and show the other form, then the taskbar icon should stay at the taskbar and the main

Detect when the active element in a TWebBrowser document changes

只愿长相守 提交于 2019-11-26 14:20:03
问题 Is there any event I can hook into to detect when the active element on a web page changes? For example, when a the user focuses an edit box. I know I could check the active element in a timer, but I'd rather avoid this if possible. 回答1: This isn't - quite - a complete answer to your q, but hopefully will get you most of the way there. (For future readers who arrive here via a similar q: Suppose you have an type library import unit for an automation/Com server like SHDocVw, MSHTML or the one