What's the best way to set up help (specifically HTML Help) for a Delphi application? I can see several options, all of which has disadvantages. Specifically:
I could set HelpContext in the forms designer wherever appropriate, but then I'm stuck having to track numbers instead of symbolic constants.
I could set HelpContext programmat...
Well, I just got Delphi for PHP because we code our app in Delphi and I'm the web guy. Go figure, it looks pretty cool and super easy, but I can't imagine making an entire website with absolute positioned labels, that would be kind of obscene, cross-browser compliant, but obscene.
Can anyone suggest good resources/usergroups/tutorial...
Does anyone have any code to read and write a res file with just cursors in
the res file that they can share?
I have tried on multiple occasions over a multitude of days to get Colin
Wilsons XN resource units to compile and function in Delphi 2009 without
much success.
To get his code to compile I have had to replace PChar with PAns...
I have just written my own logging framework (very lightweight, no need for a big logging framework). It consists of an interface ILogger and a number of classes implementing that interface. The one I have a question about is TGUILogger which takes a TStrings as the logging target and synchronizes the logging with the main thread so that...
In one file, I have a baseclass with a ID-property:
type
TBase = class(TObject)
private
FID: integer;
public
property ID: integer read FID write SetID;
end;
In a second file, I have another class, descending from TBase. By accident, or ignorance or what ever, a new property/field with the same name as an exsi...
Right now, I have the code:
begin
If odd(GetAsyncKeyState(VK_snapshot)) then
If CheckBox1.Checked then
begin
And then it continues on with the rest of the code. Is that the correct way of doing that, or am I doing it wrong?
...
We implemented a small application that uses the SOAP interface from Mantis Bugtracker (http://mantisbt.sf.net/). Mantis is installed on an SSL webserver that requires HTTP authentication.
It works perfectly in Windows XP, but not on 64-bit Vista, where it fails with "Access denied". Looking into the server's access log, I can see that ...
For full screenshots, I use this code:
form1.Hide;
sleep(500);
bmp := TBitmap.Create;
bmp.Height := Screen.Height;
bmp.Width := Screen.Width;
DCDesk := GetWindowDC(GetDesktopWindow);
BitBlt(bmp.Canvas.Handle, 0, 0, Screen.Width, Screen.Height, DCDesk, 0, 0, SRCCOPY);
form1.Show ;
FileName := 'Screenshot_'+FormatDateTime('mm-dd-yyyy-hhnn...
Hi all,
The code below enables a control (a label for instance) to show drag images while the dragging operation.
My problem is that I do not want to show the drag image instanly when the dragging begins, I want the image to be displayed when the mouse is on specific boundaries of the control - eg. in the right half of the label .
S...
I read this article and find the concept of Virtual Library Interfaces nice for runtime loading of DLLs. However it seems that they aren't available for Win32. Is this true? And if so: Why? I don't see what would tie the idea to .NET.
EDIT: I'm mostly rephrasing here what Rob already wrote. :-)
I'm not after plugins or similar - it's ab...
I want my Form1 to have a Options button that opens up Form2. In Form2, there will be 3 Radio buttons. When a radio button is pushed, I need one of my procedures to check using:
if (RadioButton1.Pushed) then begin
for it to continue with one portion of the code, or if Radiobutton2 is pushed, a different portion, and so on. The thing i...
Soon Delphi 2010 "Weaver" will enter in beta. (See http://www.embarcadero.com/products/beta_programs.php)
Which would be your most wanted features for the next release of Delphi?
Mine (from top of the head):
tooling for synchronizing the representations of DB schema (aka. DB metadata) in code and in database
language enhancements:
...
I have a Windows service written in Delphi. One of the third-party resources it uses occasionally gets corrupted, and the only way I've found to fix the situation is to exit and restart the program. I can detect when the resource is corrupted from within the program, and I can tell Windows to restart the service after it stops, but I c...
I'm using Delphi 2007 Pro. I have a runtime package that includes a number of compound components I'm developing, which are based on TFrames. There is also a related design package which installs these components to the tool palette. These TFrame descendents use a number of third-party components, for various reasons, and also inherit ...
I know CodeGear made BabelCode that uses the Code DOM to convert C# to Delphi for .NET. I am curious if there are any other similar tools to convert C# to Delphi Prism? If not, what is involved in using the Code DOM to create one (yeah, that is open ended!)
Update: This is now built into Delphi Prism. Just paste or import your C# and...
In Delphi (2007) I'm used to setting a bookmark with CTRL-SHIFT-0,1,2 etc.
Since I've upgraded to Vista x64 the above no longer works. I can still set a bookmark with CTRL-K-0,1,2 etc but I'm habituated to the traditional way (plus it's quicker).
Does anyone know why it's not working for me?
...
One of the projects I'm working on involves a module that needs to allow end users to create what essentially equates to, their own "object classes," storing data structures / record types that they can design and modify at runtime. The users will also be able to customize the user interface considerably, but that is not so much the sc...
Hi everyone:
I need help on this:
im storing object properties in a DataPacket class.
The properties are defined like this
type
TProperty = class
private
FName: string;
public
constructor Create(const AName: string);
property Name: string read FName;
end;
TIntegerProperty = class(TProperty)
private
FValu...
Perhaps a stupid question, but what exactly is the purpose of this Delphi folder?:
C:\Program Files\CodeGear\RAD Studio\5.0\lib\debug
..and why/when are *.dcu files put there rather than
C:\Program Files\CodeGear\RAD Studio\5.0\lib\
?
I'm trying to find duplicate DCU and BPL files, based on an aswer I received to another question here...
Hi Everyone,
I have a fairly complex and large application that hands loads and loads of data. Is there a speedy way to add items to ComboBox that doesn't take so long? On my P3 3.2ghz, the following snippet takes just under a second to add around 32,000 items. (MasterCIList is a StringList with strings typically 20 - 30 bytes long)....