delphi-xe3

Converting decimal/integer to binary - how and why it works the way it does?

时光怂恿深爱的人放手 提交于 2019-11-27 08:08:18
问题 As already asked David in a comment of an answer here, I'm really interested on how this function works, since I can't seem to get the same (correct) values if changing result length from 32 to 16 or 8. I used function function IntToBin(Value: LongWord): string; var i: Integer; begin SetLength(Result, 32); for i := 1 to 32 do begin if ((Value shl (i-1)) shr 31) = 0 then begin Result[i] := '0' end else begin Result[i] := '1'; end; end; end; which somehow works just fine. (1 is returned as 000.

What is the minimal agent install footprint for Delphi build automation?

霸气de小男生 提交于 2019-11-27 02:49:03
问题 When creating a build server that does clean version control check-outs and full system builds of everything in a given source repository or project, what is the minimum required Delphi install footprint for XE3 Win32/Win64 projects? (Core system - not 3rd party components) I'd prefer to have a small subset of files that can be included in a repository rather than a full Delphi install. 回答1: Using the command line compilers, you do not need to install the IDE on the remote agent computer.

Creating Accessible UI components in Delphi

删除回忆录丶 提交于 2019-11-26 22:40:36
I am trying to retrieve accessible information from a standard VCL TEdit control. The get_accName() and Get_accDescription() methods return empty strings, but get_accValue() returns the text value entered into the TEdit. I am just starting to try to understand the MSAA and I'm a bit lost at this point. Does my TEdit need to have additional published properties that would be exposed to the MSA? If so would that necessitate creating a new component that descends from TEdit and adds the additional published properties such as "AccessibleName", "AccessibleDescription", etc... ? Also, note, I have

Styling only one VCL component in Delphi

↘锁芯ラ 提交于 2019-11-26 21:51:56
问题 I know, that it's possible to disable custom styling for components, but how can I enable styles for only one component class? For example leave the whole form and all components on it unskinned, and skin only TButton. Like on this image. 回答1: Most of the VCL controls internally uses the StyleServices global function to get the methods to draw the control. So if you are not using the Vcl Styles, the StyleServices return an instance to the windows API functions to draw themed controls (UxTheme

Creating Accessible UI components in Delphi

别说谁变了你拦得住时间么 提交于 2019-11-26 08:24:38
问题 I am trying to retrieve accessible information from a standard VCL TEdit control. The get_accName() and Get_accDescription() methods return empty strings, but get_accValue() returns the text value entered into the TEdit. I am just starting to try to understand the MSAA and I\'m a bit lost at this point. Does my TEdit need to have additional published properties that would be exposed to the MSA? If so would that necessitate creating a new component that descends from TEdit and adds the