Questions tagged [delphi-2010]

Delphi 2010 is a specific version of Delphi. Delphi 2010 was released in August 2009, and is available as a standalone product or as part of RAD Studio 2010.

Delphi 2010 is a specific version of Delphi.

Delphi 2010 was released in August 2009, and is available as a standalone product or as part of RAD Studio 2010.

Delphi 2010 codename is Weaver.

Some of the major features of the Delphi 2010 release include:

  • The introduction of a new, rich RTTI (reflection) API that far exceeds the level of detail available in previous Delphi editions.
  • Full Windows 7 support at the compiler and standard library level.
  • Built-in VCL-level support for touch, multitouch and gesture input, even on earlier Windows versions without OS-level touch support.

Delphi 2010 was preceded by Delphi 2009 and succeeded by Delphi XE.

1635 questions
10
votes
3 answers

Creating an interface implementer instance at runtime

First, a little explanation about my situation: I have a sample interface which is implemented by different classes, and these classes might not always have a shared ancestor: IMyInterface = interface …
vcldeveloper
  • 7,399
  • 2
  • 33
  • 39
10
votes
2 answers

Class default property of boolean set to true gives false on run-time

I've got a simple component class with boolean property: TmyClass = class(TComponent) private fSomeProperty: boolean; published property SomeProperty: boolean read fSomeProperty write…
JustMe
  • 2,329
  • 3
  • 23
  • 43
10
votes
2 answers

How to add a checkbox to TSaveDialog in Delphi 2010

I want to add a checkbox or other VCL component to the TSaveDialog. Cantu says, The new Vista Open and Save dialog boxes (implemented by the IFileOpenDialog and IFileSaveDialog interfaces) are directly mapped by the new FileOpenDialog and …
RobertFrank
  • 7,332
  • 11
  • 53
  • 99
10
votes
4 answers

How to make MessageDlg centered on owner form

I'd like that MessageDlg appear centered on its parent form. Any suggestions on how to accomplish this in Delphi 2010? I found the code below here: http://delphi.about.com/od/formsdialogs/l/aa010304a.htm but it's not working for me. The pop-up still…
RobertFrank
  • 7,332
  • 11
  • 53
  • 99
10
votes
1 answer

Delphi: How can I add a new category in ActionManager?

I'd like my actions to be organized in categories, but in the "Categories" box, I can't add a new category. When I click add standard action, it has different categories like "Edit", "Internet",... . Is it even possible to have custom categories or…
Mahm00d
  • 3,881
  • 8
  • 44
  • 83
10
votes
5 answers

Better way to implement filtered enumerator on TList

Using Delphi 2010, let's say I've got a class declared like this: TMyList = TList For this list Delphi kindly provides us with an enumerator, so we can write this: var L:TMyList; E:TMyObject; begin for E in L do ; end; The trouble…
Cosmin Prund
  • 25,498
  • 2
  • 60
  • 104
10
votes
2 answers

How do I round a positive float up the next integer?

I need to round a positive float upwards to the nearest integer. examples; 1.0 rounds up to 1 2.1 rounds up to 3 3.5 rounds up to 4 4.9 rounds up to 5 i.e. always round up.
srayner
  • 1,799
  • 4
  • 23
  • 39
10
votes
4 answers

Why does line count change so much from D2007 to D2010?

Our app at work is a huge project with over 3000 units, weighing in about 3.5 million lines of code. ...or at least it was when we were compiling it under D2007. We recently updated to D2010, and now if we run a full build, the line count finally…
Mason Wheeler
  • 82,511
  • 50
  • 270
  • 477
10
votes
7 answers

Any build-in Delphi function like PosEx that finds a sub-string starting from the back of the string?

Is there any Delphi D2010 function like PosEx that finds a sub-string inside a string starting from the end of the string? I'm removing all the calls to the FastStrings library and one of the functions I was using was FastPosBack: function…
smartins
  • 3,808
  • 7
  • 42
  • 54
10
votes
1 answer

How to fix TPageControl Background Color without losing the system theme?

In a Delphi 2010 application with themes enabled I have two TPageControls (one inside the other) in a Form with a clMoneyGreen Background: The outer page control correctly draw its background with the color of the parent component, the inner page…
Daniel Santos
  • 1,451
  • 15
  • 38
9
votes
2 answers

Automatically resize a Delphi button

I want to dynamically change the caption on a TButton. The problem is that TButton doesn't resize itself if the caption is too long to fit on the button; so the text bleeds over the edges of the button. How can I get the button to change size to fit…
awmross
  • 3,789
  • 3
  • 38
  • 51
9
votes
1 answer

Is it possible to resume 7zip compression?

My application regularly upload large files. Regardless of their size, all files are compressed before uploaded to server. Part of this project requirements is to resume nicely after crash/power failure, so right now compression is done this…
TheDude
  • 3,045
  • 4
  • 46
  • 95
9
votes
1 answer

How to stop the IDE window from maximizing when running an application within Delphi 2010

I noticed that if I set the Delphi 2010 IDE window to be something other than maximized it automatically maximizes when I run an application friom inside the IDE. When the program is closed, the IDE window resizes back to the size it was prior to…
9
votes
1 answer

Why does changing a runtime parameter cause a rebuild in Delphi 2010?

The title is fairly self explanatory. Whenever I do a build in Delphi 2010, if afterward all I change is the run parameter under Run -> Parameters, Delphi insists on rebuilding my application. In any other language/IDE I've ever used, that wouldn't…
CodeSlinger512
  • 618
  • 1
  • 8
  • 23
9
votes
3 answers

Delphi trouble: Sorting a Tobjectlist<>

I want to sort my generic tobjectlist using the built-in sort method. here is what I do: //create the list object myList := TObjectList.Create(false); [...] //populate the list with unsorted entries //sort the…
sum1stolemyname
  • 4,506
  • 3
  • 26
  • 44