i'm using delphi 2009 (updates 1, 2, 3, 4). i'm seeing something quite peculiar. the image on the button is not centered in the button when i have a large button with a large glyph! rather than being centered, the left part of the glyph starts at the center of the button.
a clue is that when i:
go into the action editor and selec...
To get the locale settings, e.g. short date format, we've always used GetLocaleFormatSettings with GetThreadLocale. This has always worked without problem until now.
A couple of our users are getting different values for GetThreadLocale that don't match what they've configured in the regional settings in Windows 7. We've been unable to ...
I'm struggling with the following:
The goal is to parametrize an automation server for openoffice and I'm programming in Delphi.
The piece of basic code I want to translate into Delphi code is:
Dim aProps(1) As New com.sun.star.beans.PropertyValue
aProps(0).Name = "FilterName"
aProps(0).Value = "Text - txt - csv (StarCalc)"
aProps(1)....
I need to detect OnMouseLeave event for TDateTimePicker component, but it doesn't contain such event in events list. Is there a way to detect it manually?
...
I'm trying to use some legacy Delphi 5 DLLs from C# (2.0/3.5). Some of the exported functions are declared as such:
function SimpleExport: OleVariant; stdcall;
function BiDirectionalExport(X: OleVariant; var Y: OleVariant): OleVariant; stdcall;
I wish to set these up as delegates using Marshal.GetDelegateForFunctionPointer, but I'm ha...
I am using VFW unit from JEDI wrapper on WinAPI.
The code I am writing is intended to search user drives and detect warez (note: deciding if some file is legal or not is beyond scope of this question). We do MP3, WMA and some graphic file search. Now we want to detect illegal movies. I want to open AVI file, read some details from it an...
how to set array length in runtime ?
setLength(t.GetProperty('Propertys'),3); ????
unit Unit3;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TSubProperty = Class
private
Fitem2: Integer;
Fitem1: String;
proc...
Hello.
Do you know any free component, compatible with Delphi 2010 to manage ZIP archives (actually, only reading archive contents and extracting files required)?
Please no betas.
I thought about ZipForge from ComponentAce, but it's free only for personal use. No software distribution allowed.
...
Hi,
I'm using Indy10 under Delphi2009. I have a server/client application, with TidTCPServer and TidTCPClient.
I found a problem in my "logical" code.
This is :
When the server disconnect, and after a time, reconnect, the sent-clients requests are not intercepted by the server, and the server cannot contact client (because-I think- the...
Hi,
I have an application, where there are many forms which follow visual form inheritance.
Every form has standard delphi components as well as custom components.
Form validating functionality needs to be added. That is, A small red circle or astric image needs to be drawn next to a control, if the control's value is not valid.
This...
Hello, I am looking to build my own component and have no idea where to begin. I have some Delphi books but they are old and outdated, and am looking for some recommendations on tutorials/books to help me do this. The component will be pretty simple, basically 2 labels and an image. I need hundreds of these in an array, so I thought a...
How can I get MSBuild to do a full build of a Delphi project equivalent to dcc32 -b?
I've got two projects I'm trying to build, the first one uses some conditional defines, which are getting passed via msbuild to the dcc32. However, some common units appear to be stuck with the first set of conditionals, so the second project is built ...
Hi Everyone.
I have an environment with Delphi 2010 + SQL Server 2000 +Windows 7 (RC) for i am testing it on Windows 7...
When I try added a new dbExpress connection for SQL Server and press "Test Connection" from the data explorer, I'll get the following message:-
Borland.Data.TDBXError: DBX Error: Driver could not be properly initia...
I'm looking at porting an Interbase 6 / Delphi 7 application to embedded Firebird in Delphi 2007. One of the problems we have is getting our users (often quite an unskilled bunch, really - though I love them to bits, naturally) to unblock our applications in their firewall. Windows firewall itself is fairly straightforward but often they...
hey all
i wanna make hotfile account checker
inorder to start working ,i want to know how to login
i tried this
http://www.hotfile.com/login.php?user=myusername&pass=mypassword
but it saying Bad username/password combination. :( even if i entred correct login data
can any one help me please thanks in advance
regards
...
I have a class of mine, lets call it TMyObject, which should return a slightly modified copy of itself.
So, one of its functions should return an object of the same type as itself:
function TMyObject.TrimEnds: TMyObject;
begin
Result:= TMyObject.Create;
Result.DoStuff;
edn;
Can I do that? Is it legit what am I doing?
I mean, I al...
I currently use a record to pass several result parameters for a function and need to add some more data as it follows:
type
TItemType = (itFile, itRegistry);
TItemDetails = record
Success: Boolean;
ItemType: TItemType;
TotalCount: Integer;
TotalSize: Int64;
List: TStringList;
end;
function DoSomething: TItem...
Does anyone know of a simple tuturial for setting up and using Delphi 2010 with MySQL?
...
hi all
I want to show a icon (up or down) when i sort a column (asc or desc) of a ListView, so I assingned the SmallImages property to a ImageList (with two icons for up and down). My problem is that when I enter data, the firtst icon in the ImageList is shown in every line of the ListView.
PS
(ListView.ViewStyle:=vsReport)
...
Hello,
I'm trying to transfer some big streams (~1Mb) between DataSnap server/client but to no avail. I'm trying to understand the code of Jim Tierney (http://blogs.embarcadero.com/jimtierney/2009/04/06/31461) with no luck and i can't even compile the code because of a missing library, anyway ...
The max size of a stream i`m able to r...