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
4
votes
2 answers

How do I change the font size of the drop-down-menu of a combobox in Delphi Firemonkey XE7?

I'm trying to change the font size of a combobox in Delphi Firemonkey XE7. The application will be used on a Windows tablet. It already works so far that the selected item shown in the combobox when "not opened" changes the font size but when I…
Lea
  • 261
  • 5
  • 14
4
votes
1 answer

How do I SetProcessAffinityMask programmatically in Delphi XE7 for windows 2012 R2

I have a workstation whose operating system is 64 bit windows server 2012 R2. I am using Delphi XE7 Update 1. The workstation has 72 cores including hyperthreading. I want all my applications to run on all the cores that are available each time the…
Jimmy Dean
  • 153
  • 2
  • 7
4
votes
1 answer

How to handle very long file names (with TPath)?

I have a program that downloads some files from Internet. The file name could be very long (100 chars). The user may choose to save these these files in a folder that has a very long name (200 chars). So, the total length of the path is over 260…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
4
votes
2 answers

Is there a clean way to cast an anonymous method to a pointer?

I'm passing an anonymous method to an external function. The anonymous method is an integrand and the external function will calculate a definite integral. Because the integration function is external it does not understand anonymous methods. So I'm…
David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
4
votes
1 answer

How can I compile a Delphi application without using the IDE?

I need to build the components, package, and project file without using the Delphi XE7 RAD Studio IDE. Is there some way to do this using command line instead?
4
votes
2 answers

How to embed YouTube videos in newer versions of Delphi?

I'm trying to load a YouTube video into a TWebBrowser in Delphi XE7 and I'm getting an error that says this: Adobe Flash Player or an HTML5 supported browser is required for video playback.Get the latest Flash Player Learn more about upgrading to an…
David Schwartz
  • 1,756
  • 13
  • 18
4
votes
2 answers

madExcept required compiler directives

I use madExcept (not from the IDE) but in a automated batch process. Which compiler directives I should switch on in order to have stack trace and line numbers. I do not care about loaded modules, processes or CPU registers. I currently run…
Gad D Lord
  • 6,620
  • 12
  • 60
  • 106
4
votes
1 answer

How to trigger a compile-time error when using GetTypeKind

In XE7 we have the new compiler intrinsic function GetTypeKind (as yet undocumented) that allows us to extract the flavor of a type at compile time. The following code will generate a run-time error if the wrong type is used: //make sure T is a…
Johan
  • 74,508
  • 24
  • 191
  • 319
4
votes
3 answers

How to put controls into a Design State Mode just like the Form Designer does?

This one has been puzzling me for some time now and maybe the answer is an easy one, or perhaps it involves much more VCL hacking or magic to accomplish what I am looking for but either way I am at a loss as to how to solve my problem. If you look…
Craig
  • 1,874
  • 13
  • 41
4
votes
1 answer

Is it possible to specify a minimum date on TDateEdit Firemonkey control?

for example MyDateEdit.MinDate := DateOf(Now); I'm using Delphi XE7 Update 1 and the help file seems to not mention any property or method to do this
user2720638
  • 41
  • 1
  • 3
4
votes
0 answers

NvCplGetThermalSettings returning false

Question: Hello I am trying to get GPU temps for a nividia gtx 980 using Delphi, I have seen the C++ question and his solution was not to use nvcpl.dll, I dont think this is the correct solution as nivida have a full document stating how to deal…
4
votes
2 answers

Detect help button click in MessageBox?

In Delphi XE7, I need to use the Help button in a MessageBox. MSDN states: MB_HELP 0x00004000L Adds a Help button to the message box. When the user clicks the Help button or presses F1, the system sends a WM_HELP message to the owner. However,…
user1580348
  • 5,721
  • 4
  • 43
  • 105
4
votes
1 answer

Detect if GPU supports Pixel Shader 2.0 at runtime (Firemonkey)

This question comes from my previous question here: Delphi XE7 Abstract Error on StyleLookup with Effect (FireMonkey) Basically, I have several styled controls with effects applied. The effects work on most systems so I don't want to take them out…
SmeTheWiz
  • 210
  • 1
  • 8
4
votes
2 answers

How do I cast a TObject as a TObjectList?

I have a procedure that needs to insert an array of TObjects into to a list. The list can be of any of the supported types, e.g. TObjectList, TObjectList, TROArray, etc. The procedure looks like this: type TObjectArray = Array of…
norgepaul
  • 6,013
  • 4
  • 43
  • 76
4
votes
1 answer

Delphi XE7 Android how to store function pointers to later access?

When using Delphi to create Windows applications, it is possible do store function pointers in a TStringList variable, something like... function n_func(var data: integer): integer; begin //do something with data that will change its value …
André Murta
  • 141
  • 2
  • 9