I've just received an assignment to upgrade an old Delphi 3 project that I wrote in 1999 to a newer version and add features (I previously discussed this in related questions here and here). I was assuming that the appropriate route would be to first upgrade my development environment to Delphi 2010 and then port the application.
I'm n...
hi all
I am writing my own text editor, and I was wondering how can I make it load faster. Notepad.exe witch comes with windows loads almost instantly and it is a small application (on XP is 67.5KB), I know that my app is a MDI project, but it has ~900KB and it loads in 5 seconds. I could write a DLL with all bitmaps and load them from ...
Hi,
I am planning to migrate a Delphi 6 BDE application to Delphi 2010...
First of all, do I have to move away from BDE? (I will but I prefer to do this in stages if possible)
Second, is dbExpress the best choice? (I am using MS SQL)
Lastly, is there an equivalent of TUpdateSQL in dbExpress? (or anything else)
I have a lot of codes ...
When I save a file on a USB within my delphi application, how can I make sure the file is really (permanently) saved on the USB, when "Safely Remove Hardware" is not performed (especially forgotten to use)?
Telling our customer to use the windows feature "Safely Remove Hardware" doesn't work.
Is there a windows API command to flush the b...
How could one change the opacity of a TWinControl based control? And why didn't they add this capability to TControl/TWinControl level (why only TForm)?
...
My application is based on modal forms. Main form opens one form with ShowModal, this form opens another with ShowModal, so we have stacked modal forms. There is sometimes a problem that when we call ShowModal in new form, it hides behind previous forms, instead of showing on top. After pressing alt+tab, form comes back to the top, but t...
Hi.
How to detect (from Delphi) when the laptop is running on batteries (or AC)?
...
In Delphi 7, I have a library that uses the TCanvas component to output some information. The resulting image is about 4800*6000 pixels and I would like to print it and save it as .jpeg.
To achieve this, I created a TBitmap and gave its Canvas as parameter to the library and then I assigned the bitmap to the jpeg. Apparently, this is ta...
Is it possible to use de Delphi 7 compiler inside Delphi 2010 IDE?
We want to migrate at some point in the future to 2010 from D7 but for now we are stuck because of many unUnicode sources and components. But we want to enjoy the many many Delphi 2010 IDE features everybody are talking about.
Is it possible? How it's done?
What are pro...
In one form of my application, we add sets of data by adding frames to the form. For each frame, we want to be able to move from one edit (Dev Express Editors) control to the next by pressing the Enter key. So far, I have tried four different methods in my control's KeyPress and KeyUp events.
SelectNext(TcxCurrencyEdit(Sender), T...
hi all,
i am new to delphi programming.
i want to use canvas.textrect to write something on the canvas with 90 degree angle and word wrap capability and i also want the text to be vertically aligned in the rectangle.
any help will be appreciated.
thx in advance.
...
Delphi 2010 has a nice set of new file access functions in IOUtils.pas (I especially like the UTC versions of the date-related functions). What I miss so far is something like
TFile.GetSize (const Path : String)
What is the Delphi 2010-way to get the size of a file? Do I have to go back and use FindFirst to access TSearchRec.FindData?...
I'm trying to resize an array of a certain class passed as an argument, e.g.
procedure Resize(MyArray: Array of TObject);
begin
SetLength(MyArray, 100);
end;
However, this raises an error "E2008 Incompatible types". Is it true that you can't do this (I've seen rumors, but no official documentation) or am I doing something wrong?
...
I've created a class like
TMyClass = class(TObject)
private
FList1: TObjectList<List1>;
FList2: TObjectList<List2>;
public
end;
Now, I want a method FillArray(Content);, which preferably should be implemented once, i.e. no overload. I believe this is possible using generics, but I'm too inexperienced with these beasts to actually ...
Using Delphi 2010 and a patched version of the BDE I run into a problem loading the BDERTL140.bpl.
Loading DCLBDE140.bpl from another directory then usual works fine. Only when I want to load the BDERTL140.bpl, it always tells me that it has been loaded already from the Windows system directory.
Which packages load the BDERTL140.pbl, a...
I have problem with wide grids of type TStringGrid. If user scrolls grid to the right and selects row then
grid automatically scrolls left so first column can be seen, but not the column user is interested in. How to prevent such scrolling?
I use TurboDelphi (Delphi 2006).
My grid has standard options with changes:
goColSizing=True
...
I am trying to get all the information about my hard drives displayed in a memo or some other control so I can see free space and total space on the drives. I know there is a shell call I can use, but cannot figure out the usage.
Can anyone give me an example or explain what I am doing wrong?
...
Does anyone have an example of how to do some masking with Delphi TImage so I can have one image put on another?
Using 2009
...
How can I code to see how long the computer has been on.
Simple examples of code if possible.
...
It's possible modify or change a color scheme (Color SpeedSetting) in the Rad-Studio?
There is an entry in the Windows Registry? or must edit some file?
Thanks in advance.
...