delphi

Ugly "disabled" images of TMainMenu

Delphi 2010, Win32 VCL. I need to create a main menu for my application with the most standard look. TMainMenu looks nice in all Windows versions, the only bad thing is when it displaying images for items with Enabled=False. Delphi has some strange method for building that disabled images (b/w extrusion with bevels, for me it looks lik...

Delphi 7 Personal: class wizard extension?

Hi, I'm wondering if there's any class wizard extension (maybe GExperts extension?) for Delphi 7 Personal? The most important feature for me is to automatically generate properties getters / setters... ...

Is there a DCC32.exe command line switch to make it use/create .dcu files?

When compiling a Delphi project calling DCC32.EXE from a script, no .dcu files are generated. Is there a command-line switch (or .cfg setting) to make the compiler create dcu's? Will the compiler then also check the .pas file and re-create the .dcu if the source has changed? (I've seen there's a similar question for the Delphi 6 compil...

How can I display a form on a secondary monitor?

I am writing a screensaver in Delphi. I want is to display a TpresentationFrm on each monitor, fullscreen. To this end, I have written the following (incomplete) program: program ScrTemplate; uses ... {$R *.res} type TScreenSaverMode = (ssmConfig, ssmDisplay, ssmPreview, ssmPassword); function GetScreenSaverMode: TScreenSaverMod...

How to set the prefix of a document element in Delphi

Using Delphi 2009, I'm trying to get a declared namespace prefix to apply to the document element in an IXMLDocument that I'm creating. Once the document element is created I can declare a namespace with a prefix, but it does not get applied to the document element and I can't seem to change the prefix of the document element. If I use d...

Looking for radial popup menu component for Delphi

Radial menus have started appearing in several places. I'm curious whether anyone has seen or is working on a radial menu component for Delphi? We have a concept of what we'd like, shown in the animated gif at http://jmrsoftware.delaneyjoi.com/wheel.gif. (It takes about 10 seconds for the menu animation to start.) Does anyone know ...

Delphi 6: Force compiler error on missing abstract class methods?

I'm using Delphi Pro 6. Right now, the only way to know if a class is missing a base class abstract method is to wait for the IDE to emit a "constructing instance of {derived class} containing abstract method {base class.abstract method name}" warning or to wait for a runtime Abstract Error method when an attempt to call the missing met...

Dll built in Delphi 2010/2009 not compatible to Delphi 7 when an Exception is raised.

Hello guys, I've built a dll in Delphi 2010 and it's consumed in my delphi 7 application. I'm aware of the unicode AnsiString / string matter and according to my tests everything works fine up to the moment that no exception is raised by my delphi 2010 dll. The fact is, is there any special/treated exception that is compatible to the...

Delphi: How to override ShortDateFormat?

i realize that ShortDateFormat variable represents the user's preferences. i also realize that if settings change, Delphi will automatically refresh the ShortDateFormat variable with the user's settings. mm/dd/yy i have a customer who wants all "short dates" to be displayed in a particular, but they don't want to their Windows prefer...

how to pause while some process going in loopss(delphi)

hi all how can i pause and resume in application while working with loops i can put some sleep(xxx) at begininsg of my loop to pause ,but i want pause when ever i want and resume when i ever i need any ideas ? thanks in advance ok here is alittle more explanation for i:=0 to 100 do begin if button1.clicked then pause...

working with ADOQuery1 & ADOQuery2

i have a ADOQuery1 that is my master table and now i whant to use onother one ADOQuery2 for my detail Table but realy i don´t find the right way to work out the solucion. ADOQuery1 nr- Autonum name local quant. ADOQuery2 Nro _ Autonum name l1 ...

What is the equivalent of chr(153) (The TM SYMBOL) in Unicode

In earlier Delphi versions, I could use s:=chr(153); to get a trademark symbol in a string. In Delphi 2010, that doesn't work any longer, perhaps to do with unicode. What is the equivalent code string to put the TM symbol into my string? ...

How to retrieve a file from Internet via HTTP?

I want to download a file from Internet and InternetReadFile seem a good and easy solution at the first glance. Actually, too good to be true. Indeed, digging a bit I have started to see that actually there are a lot of issues with it. People are complaining about all kinds of problems when using this code. Problems could appear becaus...

Why is creating a 64bit Delphi so hard?

The Internet is full of developers requesting a 64bit Delphi, and users of Delphi software requesting 64 versions. delphi 32bit : 1.470.000 pages delphi 64bit : 2.540.000 pages :-) That's why I've been wondering why Embarcadero still doesn't offer such a version. If it was easy to do, I'm sure it would've been done a long time ago...

Getting the key of a directory in the registry

How to get the key of a especific directory in the registry of windows XP? I'm using Delphi HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\Bags ...

Is it possible to change the size of a dash of a line?

Hello, I am drawing a dashed line on the TImage Canvas and found out that the size of dashes is way too big for the drawing area. Is there a way to change the size of dashes of lines drawn on canvas? This is what i do to be able to draw dashed lines. Canvas.Pen.Style := psDash; Canvas.Polyline(myPoints); And i didn't find any Pen pro...

WOW64 woes (.lnk shortcuts)

I'm using Windows 7 (x64) and Delphi 2010. I'm writing a component that will emulate the start menu. However, I've run into the following problems: If I attempt to open a shortcut (.lnk file) with ShellExecute, this will fail whenever %ProgramFiles% is part of the target path of the shortcut (it will then look at the C:\Program Files ...

delphi datasnap 2010 from server to client file transfer

Hello To All: Have anyone tried to transfer file from Server to Client? or Transferring XML from Server to Client? Can anyone a running code for this? thanks and best regards, btw, how could I post an answer? ...

Conversion of a delphi win32 application to a library and FreeLibrary freeze

Hello, I have an application which Should be converted to a library. I' ve only copied the project dpr and changed the source file: library aLibrary; uses FastMM4, Forms, SysUtils, Windows, Mainfrm in 'Mainfrm.pas' {Mainform}; {$R *.res} Procedure DllMain(Reason: Integer); Begin If Reason = DLL_PROCESS_ATTACH Then Beg...

Why do the threads run serially in this console application?

hi, I'm creating an console application which needs to run several threads in order to accomplish a task. My problem is that threads are running one after another (thread1 start -> work -> end and ONLY then start thread2) instead of running all in the same time. Also i don't want more than 10 threads to work in the same time(performance...