delphi

Delphi: image with alpha blending capabilities

Is there some simple component that could display PNG 32-bit images and alpha-blend it to another image on mouse enter and on mouse leave? Or even just a simple image that can load 32-bit PNG and additionally would have Alpha parameter... I suppose I could use some skin library (alphacontrols?) or some graphics library, but for some sim...

Delphi asymmetric encryption

I'm looking for a Delphi implementation of an asymmetric encryption algorithm without any dependencies on external DLLs. Is there any available? My goal is to encrypt/decrypt a string (or array of bytes) using a public/private key pair. ...

Delphi Typed Constants in Case Statements

What is the most elegant (or least ugly) way of using typed constants in a case statement in Delphi? That is, assume for this question that you need to declare a typed constant as in const MY_CONST: cardinal = $12345678; ... Then the Delphi compiler will not accept case MyExpression of MY_CONST: { Do Something }; ... end; ...

Delphi 2010 " is" statement behaves differently than Delphi 7's?!

Why does the code below return TRUE in Delphi 7 and FALSE in Delphi 2010? TBitBtn is a descendant of TButton. type TForm1 = class(TForm) Button1: TButton; BitBtn1: TBitBtn; procedure Button1Click(Sender: TObject); private public end; var Form1: TForm1; implementation ...

How to detect ctrl-t keypress in Delphi

I have a Win32 form with a TEdit control. When the user presses CTRL-t while the TEdit control is in focus, I want to detect it using the OnKeyUp event. I need a code example, please, using the Key and/or Shift variables. Thanks. ...

Who's setting TCP window size down to 0, Indy or Windows?

We have an application server which have been observed sending headers with TCP window size 0 at times when the network had congestion (at a client's site). We would like to know if it is Indy or the underlying Windows layer that is responsible for adjusting the TCP window size down from the nominal 64K in adaptation to the available ...

Get the rendered text from HTML (Delphi)

I have some HTML and I need to extract the actual written text from the page. So far I have tried using a web browser and rendering the page, then going to the document property and grabbing the text. This works, but only where the browser is supported (IE com object). The problem is I want this to be able to run under wine also, so...

Delphi TRttiType.GetMethods return zero TRttiMethod instances

I've recently been able to fetch a TRttiType for an interface using TRttiContext.FindType using Robert Loves "GetType"-workaround ("registering" the interface by an explicit call to ctx.GetType, e.g. RType := ctx.GetType(TypeInfo(IMyPrettyLittleInterface));). One logical next step would be to iterate the methods of said interface. Consi...

can you help me with 8086 project for Delphi .net please

To find an Assembly programmer is very hard to help me I'm a established Delphi programmer that has an old copy of Delphi that is not .net And I have a *.dll that I'm converting into Delphi code for .net I'm on a big learning curve hear as i know little of .net yet. I've just got a computer with .net today!!!!!! I've run the *.dll thro...

Limit Selectable Rows for MultiSelect in cxGrid (Developer Express)

Does nybody know how to limit the number of rows the user can select in a cxGrid where MultiSelect is active? The Grid is working in GridMode = True - because the amount of data is really big (200.000 rows). - Now if you press CTRL+A all rows are loaded because the grid wants to select them all. Any tipps? Thank you ...

Browse for folder can't see camera device

In Delphi 2010, I want to allow users to browse and select a folder. The folder is on a device (?) created by a DSLR: The folder is visible in the Windows Explorer as shown above. And, the folder is visible in a TOpenDialog, allowing them to browse into the folder and choose a file. Unfortunately, I have been unable to get either S...

FTP proxy server component based on synapse or ICS - Delphi

Hello there, Does anybody know of some sample codes or a component of ftp proxy (server) based on Synapse or ICS for Delphi? ...

MQSeries and Delphi

Are there any (preferable free and open) components or examples out there for integrating to IBM MQSeries from Delphi? Edit Looks like IBM provide a unit http://www-01.ibm.com/support/docview.wss?uid=swg24007060 ...

Delphi: Fast(er) widestring concatenation

i have a function who's job is to convert an ADO Recordset into html: class function RecordsetToHtml(const rs: _Recordset): WideString; And the guts of the function involves a lot of wide string concatenation: while not rs.EOF do begin Result := Result+CRLF+ '<TR>'; for i := 0 to rs.Fields.Count-1 do ...

categorypanelgroup for delphi 2010

Can any one share an example on how to use the categorypanelgroup from Delphi 2010? I want to replace the to32lookoutbar from orpheous from a previous project written in Delphi 6. ...

Programmatically change the default code page in Windows XP? (from Delphi)

Could anyone advise how to programmatically change the default Windows XP code page (I'm doing this from Delphi)? (This would be the equivalent of going into Control Panel -> Regional Settings -> Language for non-Unicode applications). In this case, I want to switch to Chinese (PRC) and so am writing to the following registry strings: ...

DELPHI : EEncodingError - Invalid code page on windows xp embedded

Hi I have a application that works well on windows xp pro, windows Visa, windows 7 But when I run it on windows xp embedded it does not work and gives the following error: EEncodingError - Invalid code page When the App is made with Delphi 2006 it work on windows XP embedded When the App is made with Delphi 2010 it does *not work on...

How can I integrate graphs and JPEG images with RAVE Reports?

I really love RAVE Reports in creating multiple reports especially with formulas and accounting systems... but recently I am having problems with integrating JPEG Pictures and Graphs with my newly Delphi Language developed Little ERP System. I bought some JPEG Components but it seems problematic. I also experienced some irregularities ...

VirtualStringTree hide node(s)

Hi, is that possible to hide specific nodes in VirtualStringTree? I'm implementing "filtering" feature (the VST acts as a list with columns), and I'd like to avoid reloading content each time the filter is changed - instead, much faster would be to tell VST not to render specific items ... any solutions? ...

How set up todo list categories in Delphi 2010

How set up todo list categories in Delphi 2010. This syntax does not work: // TODO 1 -cImportant: Do this! ...