delphi

Is there a selectable label control?

I'd like a selectable label control, like the one in the screenshot. It could be done with a borderless TEdit, but I was wondering if there is another way that would work with gradient background? To clarify, I'm using a simple PageControl, which since Win XP has gradient drawing, a borderless TEdit placed on a page doesn't blend in p...

How to Verify a Fingerprint Template for DigitalPersona with a template stored in a database in Delphi

Please help with Delphi code for comparing & verifying fingerprint templates using the DigitalPersona Finger print reader. Thanking you in advance. Njoroge Njiraini ...

how to detect if tfilestream has been freed?

is there a way to see if an instace of tfile stream is being used? for example if i declare FS of type tfilestream,write buffer to it and finally free the stream using tfilestream.free can i check something like: if tfilestream.NotActive then //code if tfilestream.beingused then //code if tfilestream.free = true then //code a...

Passing methods as parameters on a deserialized form with no ClassType.

I'm effectively trying to deserialize a form. One of the objects on the serialized form has a method which takes a series of events as parameters. Now since I don't have the class type of the object when I'm deserializing, I have a method on the object doing the deserialization called AddMethod which is declared like this: procedure T...

How to check if a socket client-server is on same network ?

I'm working with socket and to this I'm using TIdTCPClient and TIdTCPServer. I need to check if the TIdTCPServer that the TIdTCPClient connected is on the same network. How can I do this ? at. ...

Delphi, olevariants and arrays of strings

i have an ole Object created with (simple verion) obj := CreateOleObject('foo.bar'); obj.OnResult := DoOnResult; procedure TMyDM.DoOnResult(Res: olevariant); which all works, the res variable has a function String[] GetAns() which im calling like this var ans: array of string; begin ans := Res.GetAns; end; which again works.. ex...

Can I design Web pages with Delphi?

I have been programming with Delphi for a long time, and I focused on desktop applications. I decided to enter the web-page programming world. How can I have an interface like Delphi but with a scripting environment for web programming? Is there any version of Delphi I can make web pages with? Can the applications created by IntraWeb ca...

delphi zip file within a thread (using TZipMaster)

Hello, I want to zip a file within a thread using the TZipMaster component. The problem is, when I run the program from the IDE I get the error (from windows) "the program doesn't respond anymore. -> Search online for a solution -> Close program" (or somehting like that I don't know the exact message in english.." However, t...

InstallAware 9 problem with Paradox DB and Delphi 2009

Hi, My project is on Delphi 2009, Paradox DB and Google Maps. The code is OK and the time right now is to build the project. This is the first time to do it. As I know there are two programs to create the setup file; InstallShield or InstallAware. Via InstallAware I did my first test but its fail and the problem is the DB, I could not r...

How to supress Entry Point Not Found error on loading Delphi package?

I maintain a program written in Delphi 6. It loads some bpl package files dynamically using SysUtils.LoadPackage. Often I change something in the program that causes a package to fail to load. When this happens a message box appears and then an exception is thrown. The message box and exception are separate. Here's an example of the mes...

Check if connection is Closed !

Hello, I've written a Delphi (2009) app with Indy (TCPServer/Client). And I have a problem at the level of TCPServer : it detects the deconnection(after a reboot of the PC) of the Client only when the client tries one more time to reconnect to the server. I've executed my app step by step, and when the client tries top reconnect (after t...

How can i have a Toolbar like this ? (Delphi)

Hi , i like this toolbar. where can i find it ? Thank you ...

Accessing members of a generic type

Lets say I have 2 class types TEmployee (with properties A,B) and TDept (with properties C,D). Then I make a class descended from TList like so : TMyCcontainer<T>=class(TList<T>) So I can create instances of TMyCcontainer and fill with TEmployee or TDept. In my TMyCcontainer class is there anyway to access properties A,B of TEmployee...

Acquire PDF returned after Posting to a web site using TWebBrowser

I am using Delphi 2007. I can successfully Post data to a web site using WebBrowser.Navigate, but afterwards, when that site returns a PDF, while it appears on the screen of the Browser, I cannot figure out how to acquire the PDF programmatically. I can see some text and HTML using Document.Body.InnerHTML, but not the PDF. Can someone ...

Drawing Text At An Angle

I am writing a VCL/Delphi Application, and I need to draw text onto a Canvas object. I am having troubles though because I need the text to be at a variable size and angle. Is there any easy way of doing this? The TextOut method only takes arguments for the Starting Coordinates, so I dont know how i can get it to draw rotated text. Thank...

problem building Mutis demo (Delphi)

I'm using CodeGear RAD Studio 2009. I want to use the Mutis text search engine. Download from SourceForge seems to lack documentation, so I tried to build the included BasicDemo. Doesn't build, gives a series of errors "missing implementation for abstract method...". Does anyone have a working version? TIA Steven PS: for what I rememb...

Delphi - Virtual String Tree Slow GetText Method At Large Amount Of Nodes

I am not yet very experienced with the TVirtualStringTree component, therefore maybe I overlooked something trivial. My app gathers File Information into a record (FileName, Path, Size) and displays the data in a Virtual String Tree. Now when there are lots of Nodes (200K+) I experience a heavy slow down, the whole Tree basically lags....

Delphi: Free TSynEdit replacement

Hello. What's the best free replacement for TSynEdit? As I can see, it is developed very slow. Want to find some replacement for it. Or, may be, the version from another maintainer. Need Delphi 2010 compatibility. ...

Is there a way to sleep unless a message is received?

I'm working in a service whose main loop looks like this: while (fServer.ServerState = ssStarted) and (Self.Terminated = false) do begin Self.ServiceThread.ProcessRequests(false); ProcessFiles; Sleep(3000); end; ProcessRequests is a lot like Application.ProcessMessages. I can't pass true to it because if I do then it bloc...

String Truncation on Transfer to ClientDataset

I'm using Firebird 2.1, DBExpress Driver from DevArt and Delphi 2010. Some of my reports that used to work with Delphi 2006 stopped working and produced an error message indicating that "arithmetic exception, numeric overflow, or string truncation" had occurred. The error occurred at this point in my code: cds.Data := dsProvider.Data;...