Right to left text in delphi trayicon BaloonHint
Is there a way to align text right in the delphi trayicon BaloonHint? ...
Is there a way to align text right in the delphi trayicon BaloonHint? ...
As far as I've been able to find out, Windows doesn't offer an API function to tell what application has registered a global hotkey (via RegisterHotkey). I can only find out that a hotkey is registered if RegisterHotkey returns false, but not who "owns" the hotkey. In the absence of a direct API, could there be a roundabout way? Windows...
In Delphi 2009 (or older versions), how do you check the "Align" compile option in the code? The IFOPT directive seems to work only with pure switches ( {$IFOPT A4} does not compile ). I couldn't find an equivalent constant or such defined ( {$IF Align = 4} or such ) ...
Basically I have a TcxGrid which will be listing various files names and I'd like to give further details based on the file extension, specifically it's description (e.g. for .PDF it's "Adobe Acrobat Document") and it's related icon. I notice there is a very similar question already but it's C# related and I'd like something Delphi base...
In Delphi 7, you a record was nothing more than a collection of data grouped into one location. In the last few versions, you've been able to add public and private members, methods, properties and constructors to them, treating them a lot more like objects. What version was this extended syntax introduced in? EDIT: In case anyone won...
I'm converting existing database driven application from D7 to D2009, therefore I won't be able to use dxGrids anymore. Is there any automatic way to convert dxGrid components to cxGrids? If not, what would you suggest me in order to gain time converting them manually? ...
We want to migrate UI rich application from delphi to java or Web Application. Reason is that we want application to be portable on all Operating Systems. Current Components and Modules of Application in Delphi : In Delphi we are utilizing TWebBrowser component to display HTML content We are playing mp3 that is extracted from FileSt...
I'm trying to optimize the size of my Delphi classes so that they take up as less memory as possible cause I'm creating a great number of them. The thing is, the classes themselves are pretty small but they aren't taking the space I was expecting. For example if I have type MyClass = class private mMember1 : integer; mMember2...
Is there any way to extract the highest (or lowest) value in a set? For example, if I have the following "set of byte": [0, 1, 2, 4, 5, 28, 199] is there any function I could run on that and get back 199 as the result? EDIT: There's an obvious brute-force solution involving a for..in loop. If possible, I'd like to find a better way...
I would like to support Fast Infoset in some enterprise applications to reduce network traffic for XML and SOAP exchanges. As documented on Wikipedia, there are Fast Infoset implementations for C# and Java. According to OSS Fast Infoset Tools, implementations are already available on several platforms including Microsoft .NET and .NET...
I have a background thread that performs I/O operations (keeping an index up to date). But in addition to that several clients access the server's hard disk and I want these accesses as fast as possible. So I thought, it would be nice, if the indexing thread is only running when the I/O load is low. Is there a way to figure this out? I...
It doesn't get much easier than using getopt() to parse command line parameters in C/C++. Is there anything similar for Delphi? Or ideally, with the same syntax? I know Delphi supports FindCmdLineSwitch and ParamStr(), but those still require some additional parsing. I want something that works like getopt() in C. Something that easily...
I need to display thumbnails of images in a given directory. I use TFileStream to read the image file before loading the image into an image component. The bitmap is then resized to the thumbnail size, and assigned to a TImage component on a TScrollBox. It seems to work ok, but slows down quite a lot with larger images. Is there a fast...
(Using Delphi 5) I am attempting to open a log file using the following code: // The result of this is: // C:\Program Files\MyProgram\whatever\..\Blah\logs\mylog.log fileName := ExtractFilePath(Application.ExeName) + '..\Blah\logs\mylog.log'; // The file exists check passes if (FileExists(fileName)) then begin logs := TStringList....
Newer Delphi versions (including Delphi 2007, which I'm using) have a build in file history feature, which lets you revert to old files from within the IDE. That's nice, but I already have source control. Is it possible to disable this feature? I ask because the IDE auto-creates a \history folder with old versions of all your files, a...
On our main data entry screen, we have an OK/Cancel dialog in the OnBeforePost event. OK lets things take their course Cancel right now does a Dataset.Cancel; Which does what it's meant to, roll back any changes and puts the dataset into browse mode. This is fine for most of the clients, but we have been asked if it can be changed t...
I've got a number of Delphi forms where we use a couple of special characters - the 'degree' symbol, and the 'ohms' symbol. These characters are used in label captions saved in the DFM file and are not generated or modified at runtime. Back along when we first designed these forms the degree symbol was easy because it is in the Ansi char...
I want to separate data layer from business logic and business logic from GUI. Diving into web I stumbled upon a few resources but still unable to make my mind clear. Some people talk about patterns some others point various frameworks. My requirements are : manipulate data from rdbms (mysql mainly) CRUD operations dealing with id gen...
I am using DBExpress in Delphi 2007 to connect to a MySQL5 database server on the net. It all works OK, until I try and upload a large amount of data. I am trying to insert 8000+ records into the database, one at a time in a loop, in the loop I pass the TSQLConection object to a function along with the data to be inserted. The function...
Hi I have some delphi code that did this needs to be re coded in c#: procedure TDocSearchX.Decompress; var BlobStream:TBlobStream; DecompressionStream:TDecompressionStream; FileStream:TFileStream; Buffer:array[0..2047] of byte; count:integer; begin BlobStream:=TBlobStream.Create(DocQueryDATA,bmRead); DecompressionStream:=TDecom...