delphi

Image Preview in a Listbox

Hi How can I display a preview (almost like a hint) of an image when I hover the mouse over an item in a listbox of filenames? I've tried showing a form and loading the image, but when the preview form shows, I lose focus for the listbox which means that when I move the mouse, the preview image does not change when I go to the next item...

Rave Report Exporting to Excel

Hi, maybe i was not clear enough in my first question, i have 1 Report which consists of 5 pages, Page1, Page2, Page3, Page4, Page5, i can export the entire report without a problem, bu we only need to export Page1 and Page2. and yes my question is how do i do it? thanks, Vladimir ...

wsdl importer generates faulty server

Hi, I've been trying to get a soap server up that implements (is that the correct term?) a wsdl specification made by a third party. I have used Delphi's wsdl importer. (Part of) the generated code looks like this: miniPortType = interface(IInvokable) ['{824D172A-9C1F-D202-5B21-4C324553BCF0}'] // Cannot unwrap: // - Input element...

Delphi - how do I export a rave report to Excel

I have a rave report that has 50 pages I need to generate a PDF report with that has pages 1 to 50 and generate a excel spread sheet that has pages 1 to page 3 I am using Delphi 2006 Rave reports 6.5 and gnostice v2.5 Question: How do I export the first 3 pages of the report to excel? ...

What is difference between Indy 9 and Indy 10?

I am responsible for porting a Delphi 2007 application to C# and have absolutely no experience with Delphi. I am wondering what is the difference between the two Indy versions Delphi includes - Indy 9 and Indy 10. At this point I don't even know what an Indy is. Can someone help me out? Are they just different versions of the Delphi Libr...

How to pause program execution until button press?

I've got an algorithm. I'd like to pause it at some point and then continue once the user presses a button. How do I do that? I've browsed the documentation, and searched the internet, but no luck yet. Here's a relevant code snip: if A[i]>A[i+1] then begin Zameni(i,i+1); done:=true; ...

How can I change the orientation of the label on a TPageControl?

I'm new to Delphi (again - I used Delphi back in 1994). I now have Delphi 2009 Pro. Coming from Java, I find the object inheritance very obscure. My users want tabbed pages with the tabs on the left. But, the TPageControl doesn't allow the tab label direction or orientation to be changed. They want the words on the tabs to read to...

Bypassing (disabling) Delphi's reference counting for interfaces

For one particular issue in the architecture of an application I'm working on, interfaces seem to be a nice solution. Specifically, some "business objects" depend on a bunch of settings that are pulled from the database in the actual app. Letting those business objects ask for an interface (through Inversion of Control), and letting a ce...

How to avoid the ding sound when Escape is pressed while a TEdit is focused?

In code I have developed some years ago I have been using this a lot to close the current form on pressing the Escape key at any moment: procedure TSomeForm.FormKeyPress(Sender: TObject; var Key: Char); begin if key = #27 then close; end; This behaviour is defined for the TForm. The form's KeyPreview property is be set to True to ...

Mutually dependent records in Delphi

I am using the operator overloading for records in Delphi 2006. (Please don't answer this question by telling me not to.) I have two record types with the implicit operator overloaded. They are both only in the implementation of the module, not exposed through the interface. My problem is, now that they are mutally dependent, I don't ...

launch a gui program from windows console and then make it 'detach' itself

I'm trying to modify a legacy Delphi 5 app so that it can be launched either from it's icon/via Explorer, or from the console (command-line). When it gets launched from the console, I want the program to detach itself from the console process, so that the console can continue to execute other instructions without waiting for my program t...

Differences between ado and bde

What is the Differences between ado and bde? ...

Using inherited in the "Create" constructor of an TObject

Should I call "inherited" in the constructor of a class derived from TObject or TPersistent? constructor TMyObject.Create; begin inherited Create; // Delphi doc: Do not create instances of TPersistent. Use TPersistent as a base class when declaring objects that are not components, but that need to be saved to a stream or have their p...

Integrate Component Help Files

How do you integrate component help files into the Delphi 2006 help system so that the help is avaliable when pressing F1. The help files are in hlp and chm format. ...

Any lib for multi-threading cross-platform for Delphi AND FreePascal?

I'm aware of some Windows Thread Libs for Delphi(OmniThread Lib, BMThreads, etc). But is there a lib that is built to be cross-platform and that can both be used under Delphi and FreePascal? ...

How do I "diff" multiple files against a single base file?

I have a configuration file that I consider to be my "base" configuration. I'd like to compare up to 10 other configuration files against that single base file. I'm looking for a report where each file is compared against the base file. I've been looking at diff and sdiff, but they don't completely offer what I am looking for. I've con...

Is It Time To Rethink The Delphi Help File System?

The majority of components available for Delphi do not have HTML Help files for Delphi 2009. Many components including some very popular commercial components only have HLP and CHM help files. Many of the third-party components are no longer being actively developed but are used by many developers. As a result there is no IDE help for...

How can I convert TBytes to RawByteString?

What is the best way to convert an array of bytes declared as TBytes to a RawByteString in Delphi 2009? This code actually works, maybe there is a faster way (without loop): function Convert(Bytes: TBytes): RawByteString; var I: Integer; begin SetLength(Result, Length(Bytes)); for I := 0 to ABytes - 1 do ...

Multiple Column headers lines in dxDBGrid in Delphi?

Users are wanting a grid to have multiple lines in the column header, and I am not finding a solution. Anybody have any suggestions? ...

How to make a rocketdock / OSX style launch bar using Delphi

I'd like to make a tool bar with icons that get's bigger when you mouse over them. I don't mind reinventing the wheel, but if anyone can suggest a good: Image Format (not sure bitmaps'll work here and not sure how to do Vectors) Existing Control (pay or free, so long as I can use it in a close source app) Container class (is TPanel suf...