delphi

Does Ribbon dynamic tabs exist in Delphi 2010?

I am writing an application with ribbon in Delphi. I don't know what are these tabs called technically, but is there any way that I can have tabs that are added when a condition is met and have a different color? Just like the one when you insert a shape in Word 2007 ("Format" tab) that comes at the end of all the tabs and is dynamic (a...

Simple OODesign question: how to query data from multiple objects?

I have been assigned the task of refactoring a legacy database application and I am trying to create objects that incapsulate the old code. It is the first time I use real OODesign, for now I just used OO to encapsulate some legacy login and refactor a subset of functionalities from an application. (Now it is the classic client server a...

Need help with deriving from TImage (to store the path to image's file)

I have an Object Inspector, just like Delphi's, which I show at run-time to allow the user to change properties of components displayed in my app. I would like to create a component derived from TImage with one extra property where I can store the path from which the image was loaded. To do so, I presume that I can subclass TImage, have...

Form Designer Save and Load

i made a simple form designer in delphi, drag and drop a button on the form and it draws it, but the thing is i cant save/load this project since i dunno how to, is there anyway that i could be abel to save it to .rc file and load it from there? ...

StrToFloat raise error in my Application not in any application

My application written month ago in Delphi 7. Now I want to convert a float str value (like 12.5) to extended, but delphi raise an error. Debugger Exception Notification Project Educatee.exe raised exception class EConvertError with message ''12.5' is not a valid floating point value'. Process stopped. Use Step or Run to continue. Sam...

Custom class to string

Hi I've created a custom class called Tperson. I'd like to convert this to a string so I can save it to an array( of type Tperson) and display in a string grid. unit Unit2; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs; type TPerson = class(Tobject) public Fname : stri...

Strange performance problem

Hello! I am recompiling a old Delphi program (from Delphi 2007) in (Delphi 2010). The code is absolutely unchanged and it compiles well. The key part of the program is the use of CopyFileExW to copy some files. Everything works OK and Dandy, however, there are some strange performance problems that I cannot understand where they come fro...

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 I am stuck with default categories? ...

How to save an object to a file

In Java, one can save an object (of any type) to a file and load an object from a file. Can we do this in Delphi? ...

Why doesn't TTimer work correctly?

Hello all, As you can tell, I am having a little trouble with the TTimer VCL component within my application developed using Delphi 2010. Whenever I call: Self.Timer1.Enabled := False; Self.Timer1.Enabled := True; The timer component does seem to indeed halt, but, it never starts up again. Like, it never calls the OnTimer event. I ...

how to simulate the inheritance of a record?

I'd like to inherit records, since this is not possible the best solution is to create classes with public fields and use inheritance against them? ...

Default parameter value for a TSomething in Delphi

I'd like to know if this is possible in Delphi (or if there's a clean way around it): type TSomething = record X, Y : Integer; end; GetSomething( x, y ) -> Returns record with those values. ... and then you have this function with TSomething as parameter, and you want to default it as function Foo( Something : TSomething = GetSo...

Any good sites for Delphi learners?

I'm currently in grade 11 (standard 9) and programming in Delphi 6 and 7. Are there any sites where I could access additional learning? ...

Command-line tool which replaces .manifest file

This will be short: Is there any command line tool to replace .manifest file in application? // Edit: I mean in resources of EXE. ...

Using WM_COPYDATA with Delphi-Prism applications.

Does anyone have a good delphi-prism example of receiving and interpreting a WM_COPYDATA message? I'm particularly interested in how to deal with the message data structure. ...

Show Windows Users Dialog

Hello Folks, How do you (programatically) show the windows local users/groups dialog? In Vista it's usually under Control Panel - Administrative Tools - Computer Management - Local Users and Groups. Similar kind of dialog with the same functionalities (add/remove users/groups) is also acceptable, as long as supported by Windows Xp and a...

How to design constructors in a hierarchy where there are just readonly fields without having too many parameters?

I have designed a hierarchy, every class has 2 readonly properties mapped to 2 private fields. Every class has a cosntructor that inherits the parent class one. The problem is that at every level of hierarchy the number of parameters increase of 2: TBaseClass.Create (par1, par2); TSubClass.Create(par1, par2, par3, par4); TSubSubClass....

is Delphi still the same (still run with no installed libraries)?

Back when I used Delphi (win32), programs made with it would run on windows, with no need to install any runtime libraries like .NET or Java(?). Is this still the case? If not, which language can do that? ...

Best Database selection for Client/Server Application (Multiuser) with Delphi?

Hi all, i want to code a software with Delphi XE, that will be able to connect to a server and users should be able to read/write the database. All records will be string (unicode enabled), maybe small amount of it can be blob. My needs are; Multiple users enabled More than one user should be able add new records at one time Capable of...

Delphi QuantumGrid - rowChanged event?

Hi there, I'm using the devExpress QuantumGrid, and I'm wondering that there is no onRowChange event. How can I determine when the selected row has changed? I could use the onCellClick event, but this isn't fired when the user scrolls with the cursor keys - It doesn't seem very suitable for that purpose. Any ideas? Thanks a lot! ...