Delphi XE2 is a specific version of Delphi. Delphi XE2 was released on September 1, 2011 and is available as a standalone product or as part of RAD Studio XE2.
0
votes
0answers
29 views
Animate TAnimate while IdHTTP.Post is working in the background?
With Delphi XE2, how can I play/update a TAnimate animation while a TIdHTTP object is working in the background? For example, I have IdHTTP1.Post waiting for this PHP "app" on a remote server to ...
0
votes
1answer
26 views
Idhttp post session expire
I'm using Idhttp (indy10 with delphi-xe2) to post form, but I get session expired message from the site, although I've already set cookie manager. Thank you.
procedure ...
0
votes
0answers
9 views
Delphi XE2: Retreiving LastLogon Int64 to TDateTime conversion
I am trying to get the LastLogin information from AD at my work.
I have about 1200 accounts. When i run a Query and include the LastLogin information, for about 40 - 45% of the accounts, i get a ...
0
votes
0answers
9 views
Difference in paint events after converting from Delphi 5 to XE2
I have achieved a first-cut conversion of an application, including some third-party legacy components and broadly speaking it works.
In one or two places I have noticed that controls are not painted ...
1
vote
0answers
22 views
Refresh Implementation of RIDL does not generate OLE Control Proxy class declaration
I have converted a Delphi 2005 OCX project to XE2, which caused the original TLB to be changed to a RIDL. Using View | Type Library in XE2 is similar to Delphi 2005, and I can see all the interfaces ...
7
votes
1answer
60 views
Delphi XE2 Style: Main Menu Ignored
I have applied a style to a VCL application in Delphi XE2, but it works OK, but it seems that the main menu has ignored the style. See attached image. Is this a normal behavior?
Any advice on how to ...
3
votes
2answers
82 views
How can I check that a computer can access a certain URL and send and receive e-mail?
With Delphi XE2, what is the most reliable method to detect if the computer is able to do the following things?
reach a specific website with HTTP which does not have a fixed IP address
send and ...
3
votes
1answer
51 views
How to get the string table resource id of a Delphi resourcestring?
In Delphi you can declare strings to be stored in the String Table of the module's resource section.
resourcestring
rsExample = 'Example';
At compile-time, Delphi will assigns an ID for it and ...
0
votes
1answer
61 views
AnyDac - How to disconnect from in-memory sqlite db?
I'm using in-memory SQLite databases with AnyDac on Delphi XE2. I noticed that my queries return results even when I forget to connect the database first after restarting the program, which is ...
1
vote
1answer
69 views
Can the TWebBrowser be used in a thread in Delphi without Application.ProcessMessages?
I am trying to create screen captures of web pages in a Delphi server application (XE2) using TWebBrowser. The screen captures are initiated via web service calls to my server, so to preserve ...
1
vote
1answer
56 views
How to always get an identical result with identical settings when encrypting a string?
In Delphi XE2, with Turbopower Lockbox-3, I use the following code to encrypt a string:
Codec1.EncryptString('AText', Encrypted);
Cipher is [AES-192], ChainMode is PCBC.
However, this produces ...
0
votes
2answers
19 views
How can I turn a list of properties into a stringlist?
I have a component with a lot of properties, many of which are types.
For example:
BackgroundStyle = [bsSolid, bsGradient, bsNone]
BorderStyle = [bsNone, bsSingle, bsWide]
I am building a form ...
0
votes
1answer
80 views
Delphi: Generate dependency graph by class
In Visual Studio I can “Generate dependency graph by class” how do I do this in Delphi-XE2?
0
votes
0answers
26 views
How to get dbgrid cell value when you're typing? Delphi xe2
The code below does not work due to the text being typing has not yet been saved:
DBGrid1.Columns [Col]. Field.AsString;
How could I get the text in the dbgrid and not directly from dataset?
The ...
0
votes
1answer
62 views
How to prevent large popup hint in Messages Panel?
In my Delphi IDE (XE2) in the messages panel when hovering over the blank line before the Build Succeeded message, I get a very large popup hint displayed that covers the entire screen in which all my ...
-3
votes
0answers
80 views
Delphi XE4 application won't connect to a database [closed]
I wrote an Inventory tracking application back awhile and I used XE2. Well I returned and compiled the application in XE4 and made some minor changes to the database. So a client who used the ...
0
votes
0answers
20 views
Is there something essential missing or wrong in this datasnap server method?
I have several datasnap server methods declared.
As long as text is sent to Oracle XE 11g, things work ok. But as soon one of the parameters is integer, I get ORA-06502 error.
Eg. this method works ...
0
votes
1answer
65 views
IdHTTP.Put Error: HTTP/1.1405 Method Not Allowed
In Delphi XE2, I am trying to upload the lines of a memo to a file on my webspace with IdHTTP.Put:
procedure TForm1.btnUploadClick(Sender: TObject);
var
StringToUpload: TStringStream;
begin
...
-4
votes
0answers
96 views
Access server-side MySQL database from local Delphi program via server-side PHP scripting? [closed]
Could someone indicate an easy example on how to access a web database from a local client program written in Delphi XE2 via PHP scripting?
Example diagram:
MyLocalDelphiXE2Program <==> ...
1
vote
1answer
92 views
internal const in generic classes seems not calculated by compiler
There is an old hack to making semi-generic containers in Delphi using include-files.
See http://www.delphikingdom.com/asp/viewitem.asp?catalogid=453&mode=print and start with 3d listing to grasp ...
8
votes
1answer
140 views
How to make custom GUI controls visible to screen readers?
I'm trying to improve the accessibility of my Delphi made application to vision impaired users. My application uses many custom GUI components that I've developed. They mostly descend from TWinControl ...
2
votes
1answer
83 views
Delphi using Microsoft’s Shell Doc Object and Control Library (SHDOCVW.DLL)
Can someone provide some background on the TWebBrowser component with regards to HTML/CSS standards? I am puzzled why it is that despite the fact that I am using Windows 7, with IE 8 installed, that I ...
0
votes
0answers
63 views
Reading the Windows EventLog
I want to read events from the windows EventLog. I found two opportunities yet: WMI and API-Commands. But at the moment I use the JvNTEventLog componente from the JEDI VCL (JVCL) (Maybe it uses the ...
0
votes
2answers
86 views
Popup Menu not appearing at my Delphi
There are TPopupMenu and three buttons on the form named "AddButton", "EditButton", and "DestroyButton" and added OnClick events to all three buttons. The TPopupMenu in the PopupMenu property of the ...
3
votes
2answers
86 views
Application.ActivateHint shows hint on incorrect position on Delphi XE2
I am using Application.ActivateHint(p), where p: TPoint, to show hint on specified position. But it always shows on actual mouse coordinates on Delphi XE2.
Please look to the stack:
...
0
votes
0answers
26 views
Delphi XE2 Rounding with DecimalRounding_JH1
Because of a documented rounding issue in Delphi XE2, we are using a special rounding unit available on the Embarcadero site named DecimalRounding_JH1 to achieve true bankers rounding. A link to the ...
0
votes
0answers
43 views
Delphi IBDatabase what to do in case of a disconnect?
I am trying to solve a big problem (For me at the moment) and hope you can help me.
My application connects to a database at the start and stays connected while the application is running. The ...
0
votes
1answer
29 views
How do I mock an ADO connection?
I'm trying to figure out how to mock a TADOConnection (working with Delpi XE2 and SQL server). The thing is that for unit testing I'd like to be able to fake out the connection and populate the ...
0
votes
0answers
90 views
Vcl.Controls.TBalloonHint BringToFront?
In a Delphi XE2 program, a BalloonHint is partially hidden behind a window with AlwaysStayOnTop form style. So how can I bring the BalloonHint on top of the windows Z-order?
0
votes
1answer
50 views
How to get object automatically on form using source code at Delphi?
procedure TMyForm.FormCreate(Sender: TObject);
var
Group: TListGroup;
Item: TListItem;
s1, s2: string;
begin
ListView1.ViewStyle := vsReport;
ListView1.GroupView := True;
...
0
votes
1answer
30 views
non-stop service for any exception
how can I make sure the service will never stop for any reason
except if it's stopped by the user.
I've tried this but didn't succeed.
OnExecute:
Count := 0;
while not Terminated do
begin
...
2
votes
0answers
85 views
VirtualTreeView: Edit next column
How can I configure a virtual tree view to edit the next column when user presses TAB?
+--------+-----------+
+ |1 + |2 +
+--------+-----------+
+ + +
...
0
votes
1answer
70 views
How to detect if submenu is shown?
In Delphi XE2, how can I detect if a submenu is shown from a popup menu?
0
votes
0answers
52 views
What steps should I take to resolve error “System.ArgumentException: An item with the same key has already been added.”
In one of my Delphi XE2 environments, I get this error:
System.ArgumentException: An item with the same key has already been added.
It only happens when I try the refactoring "Find Unit" (for the ...
3
votes
2answers
130 views
The specified service is marked for deletion on a delphi application
I write a Delphi application (basically a GUI for managing a service, it has the following features: allow the user to set some parameters that are used by the service and start/stop/unintsall/install ...
6
votes
1answer
247 views
Is there a way to display vertical indent lines in Delphi?
Is there any way to persuade the Delphi IDE to display vertical indent lines that help me see which begin goes with which end? I would like the IDE option to show a vertical line between associated ...
0
votes
1answer
125 views
Programmatically drawing the lines in a delphi drawgrid and merge cells
I want to disable the gridlines in a drawgrid and draw the grid lines myself for every other columns. Row lines are not needed.
I want to merge two cells in the fixed area so that it looks like as ...
-1
votes
2answers
104 views
Delphi: how to find and format DBGrid field
I use DBGrid with Delphi XE2 to show some query results.
In the result some (integer) Fields represent a duration in seconds that I want to show in some format like "hh:mm:ss"
I don't know in advance ...
3
votes
2answers
76 views
How to use an ampersand sign in a build event?
I'm trying to figure out how to call a PowerShell script with spaces in the filename as a Delphi build event.
From CMD I have to call powershell.exe -Command "& 'Filename With Spaces.ps1'" which ...
2
votes
1answer
70 views
Why do some functions appear more than once in the import table?
I am working on a resource leak detection unit, written in Delphi XE2. I want to monitor the creation and deletion of handles (file handles, event handles, etc) and GDI objects (bitmaps, brushes, ...
2
votes
4answers
142 views
is there something similar to c++ precompiled headers in Delphi?
One feature I miss in Delphi (I hope it is at all possible) is that I cannot have Units automatically include their dependent units. This is possible in c++ headers.
For example, in c++:
...
0
votes
0answers
30 views
Can't move 3d object of class TCube created in delphi XE2 & FireMonkey at runtime
I am able to create 3D object of TCube class at runtime. I can see the object at runtime.
However, I want to drag and drop "THE" object at runtime. But when I click "THE" object, and tries to drag, it ...
3
votes
1answer
85 views
Initialize untyped constant from a set
I'm encoding a set type and a number into a (32-bit) Tag property. Retrieving the set from the Tag is trivial: TDaySet(Byte((tag and $ff000000) shr 24)). But how can I set up constants containing this ...
0
votes
1answer
59 views
Delphi XE2 - How to open only .mp3 files with a Multiselect and Unfiltered Opendialog
How to load to listview only .mp3 files using a unfiltered and multiselect opendialog? I'm using this method:
procedure TForm1.PlayClick(Sender: TObject);
var i:integer;
begin
if ...
0
votes
1answer
68 views
Delphi XE2 Indy IRC Unicode
Is it possible to get there unicode support? Right now on IdIRC1PrivateMessage i have '?' Thanks for help.
procedure TForm1.IdIRC1PrivateMessage(ASender : TIdContext;
const ANicknameFrom, AHost, ...
0
votes
1answer
93 views
Delphi -drawgrid shows multiple instance of painted cells when any arrow key is pressed. how to correct it
when I press the button selected cells get painted in Delphi drawgrid. but when I press any arrow key the painted cells appear multiple times.
the picture shows 3 blocks. the blue one is the ...
0
votes
1answer
71 views
Manually scrolling through a TComboBox
I have not been able to figure out why I am unable to manually scroll through a TComboBox component when I programatically cause the drop down pick list to appear. Here is the code I am using:
...
7
votes
1answer
150 views
Pasting multiple lines into a TEdit
With respect to a TEdit component, would it be possible for the component to handle a multi-line paste from the Windows Clipboard by converting line breaks to spaces?
In other words, if the following ...
2
votes
1answer
69 views
SHGetStockIconInfo not found in import table
I am developing a resource leak detection tool to monitor the lifecycle of handles in my application. And with handles I mean window handles, brush handles, icon handles, event handles, etc.
I do ...
0
votes
2answers
72 views
Delphi & Absolute database : Delete Query
Why is it that my query does not work ?
Form1.ABSQuery1.Close;
Form1.ABSQuery1.SQL.Clear;
Form1.ABSQuery1.SQL.Text:='DELETE FROM LOG WHERE status = ''YES'' and DATE BETWEEN :d1 and :d2';
...