delphi

Delphi Application.HintColor

In Delphi 2010 (don't know about other versions) Application.HintColor seems to have no effect when running on Windows 7. On XP it gives the desired color. Any workarounds for this? ...

Building Multi threaded TCP/IP Server

I wanna build a TCP/IP server that will be used by up to 100 concurrent clients, but still not sure how to get started. at least I need the server to this: Listening to client, and store all them on array or list. for each client, it need to receive and send data based on it's client status. The server should update the clients list w...

Tool for licensing and protect my Delphi Win32 apps.

I am looking a tool for protect and licensing my commercial software, Ideally must provide an SDK compatible with Delphi 7-2010, support AES encryption, Keys generator and capacity to create trial editions of my application. I am currently evaluating ICE License, someone has experience with this software? ...

ActiveX in Delphi blocking VCL thread

Running into kind of a strange problem: I'm using delphi 6.0 and trying to integrate a third party activex control which connects to a server, streams and renders video (no visibility into this control). The control has a frame rate setting from 1 - 30 and if i set this to a small value like 1, the VCL thread seems to block for a secon...

DB-connection in separate thread - what's the best way?

I am creating an app that accesses a database. On every database access, the app waits for the job to be finished. To keep the UI responsive, I want to put all the database stuff in a separate thread. Here is my idea: The db-thread creates all database components it needs when it is created Now the thread just sits there and waits for ...

How do I make a TCheckListBox scroll vertically?

I've got a TCheckListBox on a form. Its Columns property is set to 2, and if there are more items than can fit on-screen in two columns, it puts a horizontal scrollbar across the bottom of the control. Thing is, the way this form it laid out, it would be much more convenient to scroll vertically. But I can't seem to figure out how to ...

Layout of panels with splitters

I have a question about layout with TPanels and TcxSplitter from DevExpress. The main form has some panels A to G. A - F is collected in one panel ABCDEF. ABCDEF contains 3 panels: AB, CDE and F. Panel CDE contains panel CD. Between all limits between panels there are a TcxSplitter from DevExpress. The problem is that the user can tak...

How to test if a control is a RichEdit control

Most TWinControl descendant in Delphi has an override method CreateParams to define it's subclass such as: 'EDIT', 'COMBOBOX', 'BUTTON', 'RICHEDIT' and etc. CreateSubClass(Params, 'EDIT'); CreateSubClass(Params, 'COMBOBOX'); CreateSubClass(Params, 'BUTTON'); There are quite a number of rich edit control for Delphi including controls ...

how to set the tabwidth of the listbox portion of a TComboBox in Delphi

You can easily achieve a multicolumn effect in a listbox by setting the TabWidth property of TListbox. For example, http://delphi.about.com/cs/adptips2000/a/bltip1200_3.htm I need to do the same in the drop down list of a ComboBox, but comboboxes don't publish any TabWidth property. Any ideas? ...

How could this Java routine be converted into Delphi?

I need to convert this code into Delphi. But it's too complicated to handle... Thanks... String key = xorString("STACKOVERFLOWCOM", "ASDFQWERTYKMLYDR"); String xorString(String txt, String xor) { StringBuffer str = new StringBuffer(); for( int i = 0; i < txt.length(); i++ ) { int ch = txt.charAt(i) ^ xor.charAt(i); char di...

How to Specify Project-Specific Package Settings?

How can I specify project-specific package settings in the Delphi 2010 IDE? Changing the packages in the project options does change the packages for all projects in the project group. This is annoying because I build my application with a package that needs to be disabled in order to compile the BPLs in the project group. ...

Best tools [practices] for printing annotated image (TPicture) based documents from Delphi

It seems that most Delphi applications fit into two classes: Database-centric Applications that use Reporting Systems for all their printing needs, and applications that don't need printing. For those in the excluded middle (non-database printing, non-reporting system), there are components to help out. For example, I have been a Develo...

embedded file into delphi exe application (not as a separate file from the appliaction)

i want to embedded a file (any kind of type) to my exe application and be able to extract in the remote to use it, i know how do it by embedded into resource,but i don't want to place the files in the app directory, i want to store all files (like .rec) into my exe, in c# it is possible to store as text file and then read it by FileStr...

Delphi 7: Application scaling

On my notebook with a screen resolution of 1280x800 I've developed an application. Now I want to use it on a desktop computer with a resolution of 1600x1200. Of course, it's too small on the desktop computer. I've set the sizes so that I could see the whole form on my notebook. But on the desktop computer, everything should be resized. ...

adding design packages (bpls) in delphi IDE (automatically)

I am trying to automate Delphi Environment regeneration we have bunch of bpl-s that has to be installed in a fresh delphi. I need to automate this somehow from Delphi 5 it would be : Components->Install Packages->Add... Any ideas? Thanks. ...

Delphi 7: Select certain items of a TList

In Delphi I have an own class which is based on TList. It is TPetList. Every instance of TPetList can have some items of the class TPet. The instance of TPetList is displayed in a TListView component using a for loop. TPet is based on TObject and has the following fields: city age breed Now I have a list of checkboxes where the user...

How to Install DBMonitor

This is probably a really simple question, but here it is. I just renewed my license for the DevArt DBExpress driver for Firebird. The help file says I can use their freeware DBMonitor application with it but since I am using D2006, I have to use these instructions: "If you are Delphi Pro version user, then you don't have TSQLMonitor ...

Delphi UUID generator

I need some code to generate UUIDs for Delphi. Any recommendations? ...

Delphi array initialization

I currently have this, and it sucks: type TpointArray = array [0..3] of Tpoint; class function rotationTable.offsets(pType, rotState, dir: integer): TpointArray; begin Result[0] := point(1, 1); Result[1] := point(1, 2); Result[2] := point(1, 1); Result[3] := point(1, 1); end; but instead, i want to do something like this: c...

How can I change Delphi's shortcut keys?

How can I change the IDE keyboard shortcuts in Delphi? I want to change "Run" from F9 to F5 and "Add Breakpoint" from F5 to F9 I'm currently programming Delphi at home and C# at work and these 2 shortcut keys are confusing because they are the opposites of each other! ...