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

TMemo is painfuly slow when working with large number of lines

I have 100000 lines in a TMemo. I want to do something like: for i:= 0 to Memo.Lines.Count-1 do Memo.Lines[i]:= SomeTrim(Memo.Lines[i]); but the speed is 0.5 lines per second!! After adding BeginUpdate/EndUpdate I don't see any speed…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
8
votes
1 answer

Painting issues with TScaledLayout & custom styles

I'm experiencing painting issues when combining TScaledLayout and custom styles created from the bitmap style designer in fmx. To demonstrate, I loaded the default custom style created by chosing "New style for VCL / FMX" -> "save as .style" in the…
DNR
  • 1,619
  • 2
  • 14
  • 22
8
votes
3 answers

Creating a transparent custom bitmap brush

Problem Definition I am trying to create a custom bitmap brush with transparency but it doesn't seem to be working as expected. If you look at this example. Add the code and hook up the paint, create and destroy events. type TForm3 =…
Graymatter
  • 6,529
  • 2
  • 30
  • 50
8
votes
1 answer

Using Generics to create an interfaced object

I've written a function that accepts a class type (T) and an interface type (I) and returns an interface (I) to the object (T). Here's the code. interface function CreateObjectInterface( out AObject:…
norgepaul
  • 6,013
  • 4
  • 43
  • 76
8
votes
1 answer

Str in XE7 generates strange warning

Why does this code: w: word; s: String; begin str(w, s); generate this warning in XE7: [dcc32 Warning] Unit1.pas(76): W1057 Implicit string cast from 'ShortString' to 'string' Tom
Tom
  • 565
  • 1
  • 5
  • 21
7
votes
2 answers

How to convert a null terminated string to string?

I want to store to disk some data records. I want to have each data record of equal size so I can quickly compute and jump to a certain record. So, I store the only string in my record as an array of chars: type TFileNameIO = array[1..512] of…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
7
votes
3 answers

Any way to speed up SaveToStream on TPNGImage?

I have a function that converts TBitmap (which I draw) to TPngImage and then saves it to stream, so other methods can use it. Png is used because it creates smaller images for report output (excel, html). The problem is that SaveToStream seems to…
Mike Torrettinni
  • 1,816
  • 2
  • 17
  • 47
7
votes
1 answer

When using RTTI how can we get and set deeper level sub-properties?

Overview I appreciate a couple of similar questions have already been asked before: Get/Set sub properties ussing RTTI Get a sub property of a component in Delphi using RTTI how i can set the value of a nested property using the RTTI How can I…
Craig
  • 1,874
  • 13
  • 41
7
votes
1 answer

How can I store the type parameter(s) of a parameterized method and later use them to convert a JSON object to a plain object of the generic type?

I am attempting to write a generic messaging passing system for Delphi and .NET. The system allows messages to be defined as plain objects and message handlers are defined as anonymous methods that act on those objects. The objects are converted to…
Kenneth Cochran
  • 11,954
  • 3
  • 52
  • 117
7
votes
2 answers

Exclude VCL Styles from styling Dialog / ShowMessage borders

Is there any way to exclude VCL Styles from styling a system dialogs' border. Sepecifically a dialog that is shown by calling MessageDlg or ShowMessage. I read some articles on "The Road To Delphi" (which is an excellent site btw) but couldn't find…
ChrisB
  • 2,497
  • 2
  • 24
  • 43
7
votes
1 answer

How can I use TTask.WaitForAny from the new threading library?

In an attempt to use the threading library in Delphi to calculate tasks in parallel and using TTask.WaitForAny() to get the first calculated result, an exception occationally stopped the execution. Call stack at the exception: First chance…
Jimmy Dean
  • 153
  • 2
  • 7
7
votes
3 answers

How do I refresh a TDBGrid?

I have a TDBGrid called myDbGrid that I want to update after a change to the database (insert/update/delete). How can I do this without reloading my form completely? myDbGrid uses myDataSource and it uses myQry as its data set. I've tried the…
BIBD
  • 15,107
  • 25
  • 85
  • 137
7
votes
1 answer

Value of PixelsPerInch varying with windows themes?

In windows 7 environment, the value of PixelsPerInch varies while switching between Win7 and classic themes. Strangely, while having the current windows OS active on a 150% scale, in Win7 theme PixelsPerInch returns a value of 96. The attached…
Johny
  • 419
  • 4
  • 15
7
votes
2 answers

How to fix TSparseArray?

Because of an unfixed bug with System.Generics.Collections.TArray.Copy (depending on already reported bug in System.CopyArray) there will sometimes raise an exception using the threading library. The exception is raised in method…
Sir Rufo
  • 18,395
  • 2
  • 39
  • 73
7
votes
2 answers

Access violation using THTTPGet with OpenSSL under iOS after upgrading to XE7 update 1

After upgrading to Delphi XE7 update 1 I am seeing the following error when connecting to a server using TIdHTTP with TIdSSLIOHandlerSocketOpenSSL. --------------------------- Debugger Exception Notification --------------------------- Project…
norgepaul
  • 6,013
  • 4
  • 43
  • 76
1 2
3
60 61