Questions tagged [delphi-xe2]

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.

Delphi XE2 is a specific version of released on September 1, 2011.

Notable new features of Delphi XE2 are:

  • Support for 64 bit applications (on Windows only);
  • Inclusion of a new framework called that allows for cross platform development;
  • Cross platform development for Mac OS X and iOS(*) (in addition to Windows);
  • Live bindings, a new data binding concept for VCL and FireMonkey that supersedes data-awareness of controls.

*iOS projects require an extra development step using Xcode and the Free Pascal compiler on a Mac, but do deliver native iOS code.

Delphi XE2 was preceded by .

Always use the tag alongside this tag.

2598 questions
10
votes
1 answer

Why doesn't WINWORD.EXE quit after Closing the document from Delphi?

I managed to distill one of the underlying issues rooted in my question How to trace _AddRef / _Release calls for OLE Automation objects in the unit below. I'll answer this answer too, just in case anyone else bumps into this. The question: with the…
Jeroen Wiert Pluimers
  • 23,965
  • 9
  • 74
  • 154
10
votes
2 answers

Delphi: ListView (vsReport) single column header caption with custom font color?

In a ListView with vsReport ViewStyle, how can I customize the font color of just any single column header caption? For example (the second column header caption has a red font color):
user1580348
  • 5,721
  • 4
  • 43
  • 105
10
votes
5 answers

Simple code to encrypt an .INI file string using a password

I am looking for something more sophisticated than ROT13, but which does not require a library (preferablly not even a unit, just a drop in function). I want to symetrically encrypt/decrypt a given string with a password provided by the user.…
Mawg says reinstate Monica
  • 38,334
  • 103
  • 306
  • 551
10
votes
1 answer

How do I make the Windows 8 press-and-hold rectangle go away?

If you press and hold a textbox on a touchscreen in Windows 8, a rectangle appears after some time. Here's a picture of it: This rectangle is supposed to disappear when you release your finger. The context menu will now appear. (See Notepad for…
Giel
  • 2,066
  • 20
  • 22
10
votes
1 answer

How can I implement my own custom property editor for all instances of a certain type?

I have followed a few tutorials on creating a custom property editor dialog, but there are so many things involved that I could not get it to work right. What I am trying to accomplish is a custom form with a date picker (calendar), a time picker,…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
10
votes
1 answer

TLoginCredentialService usage example

The documentation page of this new class - introduced in XE2 - only contains references to the TObject documentation, or placeholders. I can see that this class offers a RegisterLoginHandler method, and a UnRegisterLoginHandler method, which use a…
mjn
  • 36,362
  • 28
  • 176
  • 378
10
votes
1 answer

Is it safe to remove the declaration of a form from the unit?

When designing a TForm, a line is added to the form's unit declaring the form object... var frmMyForm: TfrmMyForm; I don't need this form auto-created, and I intend to create multiple instances of it, and to make sure I don't make the mistake of…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
10
votes
1 answer

Adding custom header to TIdHttp request, header value has commas

I'm using Delphi XE2 and Indy 10.5.8.0. I have an instance of TIdHttp and I need to add a custom header to the request. The header value has commas in it so it's getting parsed automatically into multiple headers. I don't want it to do that. I need…
Sam M
  • 4,136
  • 4
  • 29
  • 42
10
votes
2 answers

MakeScreenshot leaking?

Good evening all! In a current project, i'm experiencing a rather worrying memory leak that i just can't seem to plug. I left the application running overnight with standard usage going on and when i awoke 8 hours later, it was eating up ~750MB…
Scott P
  • 1,462
  • 1
  • 19
  • 31
10
votes
2 answers

Delphi XE2: How to define custom DataSnap REST URI?

I am using Delphi XE2 to write DataSnap REST service. I notice that the REST URI in DataSnap must strictly follow this format (refer here): http://my.site.com/datasnap/rest/URIClassName/URIMethodName[/inputParameter]* A famous example is sample…
Chau Chee Yang
  • 18,422
  • 16
  • 68
  • 132
10
votes
1 answer

Delphi XE2 app doesn't respond on IPAD

I try to use Delphi XE2 for develop for an iPad 3 professional application. The configuration is ok. I work on a MacBook Pro with Windows 7 on VMWare. I create an HD app for iOS. I put a timer, two labels and a button. The timer refresh the time on…
Chandlerb
  • 133
  • 6
9
votes
2 answers

delphi - how to pass a parameter from the instantiator to a constructor in the spring4d dependency injection framework?

It's possible to register a class with a parameter expected to be passed from the point of creation? I know it can be done something like this: GlobalContainer.RegisterType.Implements. AsTransient.DelegateTo( …
pragmatic_programmer
  • 3,566
  • 3
  • 29
  • 36
9
votes
3 answers

How to detect when the form is being maximized?

I would like to detect when the form is going to be maximized to save certain settings (not related to the size nor position) and modify the size and position a little bit. Is there an universal way to do it ? I've tried to catch the WM_SYSCOMMAND…
Martin Reiner
  • 2,167
  • 2
  • 20
  • 34
9
votes
2 answers

Is there a web browser component for use in FireMonkey application?

For Delphi VCL there is TWebBrowser and some 3rd party components like TEmbeddedWebBrowser available for browsing a web. Is there a similar web browser component but for Firemonkey framework in Delphi XE2 (ideally with Windows and Mac support) ?
Dennies Chang
  • 564
  • 5
  • 15
9
votes
3 answers

Using WinInet to identify total file size before downloading it

I got the source below from a third-party site explaining how to download a file from the internet using WinInet. I'm not too familiar with API, and I took at look at the WinInet unit but did not see any API calls like what I need. What I'm doing is…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327