Questions tagged [delphi-xe7]

Delphi XE7 is a specific version of Delphi released in September 2014.

Delphi XE7 is a specific version of Delphi released in September 2014. It supports development of applications covering Win32, Win64, OSX, iOS, and Android. Windows applications (32bit and 64bit) may be built using either the VCL framework or the Firemonkey (FMX) framework, whereas the rest of the supported platforms are built under the Firemonkey framework.

Always use the tag alongside this tag.

909 questions
5
votes
1 answer

How to use StackAlloc in x64?

I am trying to use StackAlloc from Graphics32 in DelphiXE7 in X64 however it crashes with erorr. I tried adding NOFRAME to the code and that didn't help either. First chance exception at $000000000013FF10. Exception class $C0000005 with message…
John Lewis
  • 337
  • 3
  • 12
5
votes
2 answers

TMultiView on Frame causes AV

When placing a TMultiview control on a frame and trying to re-open that frame in the IDE causes an AV and unable to view it. It is a known issue and reported to EMB. The issue has been reported to the new Quality Portal here:…
Donovan Boddy
  • 489
  • 1
  • 6
  • 14
4
votes
2 answers

Converting a generic type variable to string

I'm trying to convert a generic variable of type T into string. TMyTest = class class function GetAsString(const AValue : T) : string; static; end; ... uses System.Rtti; class function TMyTest.GetAsString(const AValue : T) :…
Fabrizio
  • 7,603
  • 6
  • 44
  • 104
4
votes
1 answer

Is WM_NCHITTEST supposed to be perpetually generated by Win10, at a frequency of 100's per second, even if mouse is idle?

I'm experiencing a strange behavior with WM_NCHITTEST messages. In summary, what happens is that as soon as I have the mouse over the target (ie: Hooked) control and leave the mouse still (or idle), I receive endlessly hundred's of WM_NCHITTEST…
Guy R
  • 43
  • 3
4
votes
1 answer

Autoresizing TCheckBox (like TLabel)

I want to create a checkbox that can automatically resize its width, exactly like TLabel. UNIT cvCheckBox; { It incercepts CMTextChanged where it recomputes the new Width} INTERFACE USES Winapi.Windows, Winapi.Messages, System.Classes,…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
4
votes
1 answer

How to place a component above a TMainMenu?

When I add, for example, a TPanel to a form and align it using alTop and then add a TMainMenu to the same form, the main menu position overrides the panel position such that the Main Menu remains topmost on the form with the panel appearing below…
LEO
  • 43
  • 2
4
votes
1 answer

How to translate the string which is declared in Array in delphi?

We have the application in delphi and now we are implementing language translation feature. We added the code in core to translate the strings which are declared in ResourceString. It is working fine but strings which is declared in Array not…
Nijesh
  • 55
  • 5
4
votes
1 answer

Why a Delphi application has more than one thread?

I have seen that my Delphi app has more than one thread - 7 more exactly. OF COURSE I am not creating my own threads and I am only using 'classic' VCL controls. The program is idle. It just displays the main form. No dialogs are active, no…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
4
votes
4 answers

How do I get the standard file extension given a MIME type in Delphi?

Is there a built-in way to get the standard extension of a given MIME type in Delphi (XE7)? I'm looking for the easiest and most general way to implement a function that would be called like this: fileExt := GetExtension('text/xml');
Helmut D
  • 630
  • 6
  • 11
4
votes
2 answers

Error when creating TRESTClient: "No peer with the interface with guid [{}] has been registered"

I've created my class to work with REST. I have a problem with TRESTClient component in runtime. TFrwWebServiceREST = class(TInterfacedObject, IRESTWebServiceProxy) private FClientRest: TRESTClient; FRequestRest: TRESTRequest; FResponseRest:…
Seeko
  • 75
  • 1
  • 8
4
votes
1 answer

How to extract frames from this GIF image? (Access violation in TGIFRenderer.Draw)

I have this functions that extracts frames from animated GIFs. It works with all GIFs except this one: { Loads a GIF. Returns a list of BMP frames } function GetGifFrames(GifFile: string): TObjectList; var GIF: TGIFImage; TempFrame: TBitmap; …
Gabriel
  • 20,797
  • 27
  • 159
  • 293
4
votes
2 answers

How to align 2 arrays without temporary arrays?

I have 2 arrays that I need to align lines. I prepare the 'control' array which has the info on how to align arrays and then I do it, with help of temp arrays. See in picture the arrays and result as aligned arrays: Here is the code that I use, as…
Mike Torrettinni
  • 1,816
  • 2
  • 17
  • 47
4
votes
4 answers

How to control execution without lots of IFs?

I have a process that starts with importing data from file and then executes a series of procedures, but at anytime it can find a problem and should stop executing rest of them and run another set. Here is my example where every procedure sets…
Mike Torrettinni
  • 1,816
  • 2
  • 17
  • 47
4
votes
4 answers

I have flickering on my custom control. What is causing it and how can I eliminate it?

Introduction I am writing a custom control that is derived from a TScrollBox but I am having a few difficulties overcoming what seems like should be an easy enough problem to solve. The control will be used to display a caption bar at the top which…
Craig
  • 1,874
  • 13
  • 41
4
votes
2 answers

How to get all the exported functions in a DLL?

How can I get all the exported functions from a DLL, programmatically? I am trying to compare two DLL's for exported functions.
user5180416
  • 41
  • 1
  • 4