delphi-2009

How to update the text in a tray icon balloon by hand?

I use CoolTrayIcon component,but I can modify it by hand.What I want to accomplish is to update the text in the balloon i just created without actually creating another balloon.Problem is: function TCoolTrayIcon.ShowBalloonHint(Title: String; Text: String; IconType: TBalloonHintIcon; TimeoutSecs: TBalloonHintTimeOut): Boolean; // Show...

Delphi 2009 (and probably Delphi 2010 as well) and QTP

We have a suite of automatic tests written in QTP (Quick Test Pro - an HP product), and we have just upgraded to Delphi 2009 (I know we are late adopters), and all of these tests no longer work. The plugin that QTP have released does not work with Delphi 2009 - we have that in writing now from HP. Do you know of (a) anyone else in the sa...

How to dynamically add buttons to TCategoryPanelGroup?

Has anybody experience with Delphi 2009's TCategoryPanelGroup component and specifically with dynamically adding buttons to category panels? I can't get it to work properly. Either the buttons do not appear or the alignment is screwed up. Basic outline of what I want to do: procedure AddButton (const Caption, Group : String); const ...

"ERROR MSB4040 There is no target in the project" when using msbuild+Delphi2009

I'm trying to automate the build of a project in Delphi 2009. I'm using msbuild with .net 3.5 I simply call: Z:\Server>C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild "BestSellerAppServer.g roupproj" /target:Build And get this: Build started 27/08/2009 01:15:45 p.m.. Project "Z:\Server\BestSellerAppServer.groupproj" on node 0 (Buil...

TLinkLabel background on a TPageControl

I am trying to use a TLinkLabel on a TPageControl, and I can't find a way to make it use it's parent's background. So, in XP, I get this: As you can see, the parent tab sheet's lovely gradient is not preserved behind the link text. I would like the functionality of having multiple links in a flowing block of text (the functionality...

Post Data to ASP .NET page using Delphi and TIdHttp

I have an Asp .net page like this simple one http://issamsoft.com/app2/page1.aspx and I want to post to it some data and extract data from the response, by using TIdHttp. I tried to do that in Delphi2009 like this: Procedure TForm1.Button1Click(Sender: TObject); Const VIEWSTATE = '/wEPDwUKMjA3NjE4MDczNmRkSxPt/LdmgqMd+hN+hkbiqIZuGUk='; ...

String losing data when assigning to TStringList

Hi there. I have this method, var s : TStringList; fVar : string; begin s := TStringList.Create; fVar := ZCompressStr('text'); ShowMessage( IntToStr(length(fVar) * SizeOf(Char)) ); //24 s.text := fVar; ShowMessage( IntToStr( length(s.text) * SizeOf(Char)) ); //18 end; The ZCompressStr is from http://www.base2ti.com/zlib.htm with...

What is the fastest way to check if two Tbitmaps are the same?

Is there a better way than examine them pixel by pixel? ...

How can I add ItemIndex to TRibbonComboBox?

I just discovered that the Delphi TRibbonComboBox doesn't have an item index, and it should. I'd like to fix this locally at least for the unit, and I think Delphi 2009 added a way to introduce new methods to an outside class without having to descent from the class, but I can't remember how. Is there a way to add 'function ItemIndex: ...

Are Generics in D2009 usable in large projects?

Hi, I'm pretty frustrated. I'm using Delphi 2009 and was very happy about the inclusion of generics in this version of Delphi. Everything worked great at the beginning, but now that I use generics all over the place I run into problem after problem - most of the time some internal errors, where I don't even see where exactly they are ca...

stop the kernell32 event

hi how can i stop or freeze the kernel32 event? for example stop the copy file?? ...

How do the new string types work in Delphi 2009/2010?

I have to convert a large legacy application to Delphi 2009 which uses strings, AnsiStrings, WideStrings and UTF8 data all over the place and I have a hard time to understand how the new string types work and how they should be used. The application fully supported Unicode using TntUnicodeControls and there are 3rd party DLLs which requ...

Static polymorphism in Delphi

Is there a way to implement static polymorphism in Delphi 2010? ...

Universal MP3 and WMA tag reader for Delphi

I know similar subjects have appeared in SO, but there wasn’t answer I am looking for. I need a Delphi library for reading tag information from music files. Currently I am using TJvID3v1 from JEDI library, but as far as I see, JEDI does not work with WMA files. I have found some manuals on how to implement such tag reading, but most of ...

Why is DoubleBuffered disabled by default?

After creating a new form, I usually perform this ritual: Change the name into something meaningful; Type a Caption; Change the position property (DefaultPosOnly is hardly ever what users expect); Set ShowHint to true; Set DoubleBuffered to true; I've been wondering for a while why the default value is 'False'. To me it just looks ...

Howto determine if connection is still alive with Indy?

I use Indy for TCP communication (D2009, Indy 10). After evaluating a client request, I want to send the answer to the client. I therefore store the TIdContext, like this (pseudocode) procedure ConnectionManager.OnIncomingRequest (Context : TIdContext); begin Task := TTask.Create; Task.Context := Context; ThreadPool.AddTask (Task...

Need form to stay on top of parent only.

Hi, I have a multi-window application. My main form is a child of the desktop. My application can create other forms that also become children of the desktop. However, I have a special case where my main form needs to create a form that will always stay on top of it. I had this working to an extent....however, if I then create other wi...

Change the label of a TCollectionItem in the Delphi editor

A component I am working on uses a TCollection to hold links to other components. When the items are edited in the designer their labels look something like this: 0 - TComponentLink 1 - TComponentLink 2 - TComponentLink 3 - TComponentLink How do I add meaningful labels (the name of the linked component perhaps)? e.g. 0 - UserList 1 -...

Unicode problems with Delphi 2009 / 2010 and windows API calls

Hi I have been using this function in Delphi 2006, but now with D2010 it throws an error. I think it is related to the switch to Unicode. Function TWinUtils.GetTempFile(Const Extension: STRING): STRING; Var Buffer: ARRAY [0 .. MAX_PATH] OF char; Begin Repeat GetTempPath(SizeOf(Buffer) - 1, Buffer); GetTempF...

Class reference from Generic parameter class

I have a persistence framework, and I am trying to use generics so I don't have to keep creating new list classes for each type of object I want to store in a type safe way. I have a method that returns the class of the contained object in the list class (so I know which queries to run and which object to create. As an example, it look...