i'm using delphi 2009 with the VCL's TRibbon and TScreenTipsManager.
TScreenTipsManager shows ribbon bar context sensitive help--how can i make the "Press F1 for more help." show the context sensitive help? what i mean is that they're hovering over a certain button, see the hint, and then press F1 for more info on this button...what's ...
I need to generate HMAC-SHA256 signatures for the Amazon web services API. The old DCPcrypt library has sha256 routines but does not do HMAC signing. Anyone know of a free hashing library I could use?
...
I've got a TDBGrid with predefined columns, and I just can't get the width right. I can mess with the Width property of the columns in the Form Designer and get the width to look just right at design time, but at runtime, for whatever reason, the columns tend to be significantly wider, and I end up with a scroll bar at the bottom of the...
I am porting a Delphi application to FPC/Lazarus and this application shows info in splash screen. When unit has initialization section then this initialization section calls something like:
Splash.Info(unit_name)
This works in Delphi, but when I compiled this using FPC/Lazarus then I got exception when I create form with splash scre...
Hi,
is it possible to set a TDBGrid (or TwwDBGrid) cell ReadOnly in Delphi? Currently I am fiddling around with literally greying the cell and clearing it after an edit, but it's not very satisfactory.
Cheers, Jamie
...
When searching for files with FindFirst() I get an attribute value in the TSearchRec.Attr field of 2080. It is not specified in the help as there are only these values available and no combination of them yields 2080:
1 faReadOnly
2 faHidden
4 faSysFile
8 faVolumeID
16 faDirectory
32 faArchive
64 faSymLink
71 faAnyFile
Does anyone kn...
How can I get the location of the tnsnames.ora file by code, in a machine with the Oracle client installed?
Is there a windows registry key indicating the location of this file?
...
How would you go about creating a vector class in Delphi? I would prefer to put all math related stuff into a DLL. Should I use a record or a class implementing an interface?
Pros of record approach:
Fast and lightweight
Value type
Operator overloading
Cons of record approach:
Implementation cannot be hidden in DLL (no inheritance...
I have a simple problem. My (Delphi 2007 with Indy 9) application connects to an FTP server to retrieve a list of files. (NLST, not LIST) I then download every file separately for further processing.
Unfortunately, the administrators of the FTP site added a subfolder in the folder where the files are located. The current code thinks it'...
When i compile a new project in Delphi 7 IDE , the MCafee identifies
it as Virus and deletes it .
The virus identified as Generic.dx!gmk and is deleted by the antivirus so no new Exe is created .
How do we resolve this issue ?
Is this a false positive ?
...
I hate to re-invent the wheel so I'm looking for an existing solution to create a simple authentication system for my application. I've experimented for a while with using CardSpace or OpenID inside the application but I can't convince management that these would be working solutions.
Of course, I could just build a simple login dialog w...
So the question is whether or not string literals (or const strings) in Delphi 2009/2010 can be directly cast as PAnsiChar's or do they need an additional cast to AnsiString first for this to work?
The background is that I am calling functions in a legacy DLL with a C interface that has some functions that require C-style char pointers...
I've got a form with a DB grid on it. It worked fine as a normal TDBGrid, but when I replaced it with the Scalabium TSMDBGrid, I started getting exceptions while loading the form.
Here's the problem, as far as I can track it down:
While loading the columns from the DFM, it attempts to set the Expanded property on the first column to F...
I have some code that starts a process and hooks up an event handler to handle when the process exits, the code I have is written in C# and I wonder if something similar is possible with Delphi.
System.Diagnostics.Process myProcess = new System.Diagnostics.Process();
myProcess.StartInfo.FileName = "notepad.exe";
myProcess.EnableRaisingE...
Hi all,
how I can enable using visual themes for Delphi 7 IDE on Windows 7? For Windows XP I made file delphi32.exe.manifest, but for Windows 7 it does not work.
I mean Delphi 7 enviroment and development. My programs are OK.
Thank you, Pavel
...
I am troubleshooting a problem with existing code that always worked fine (it's the Terminal Server unit from the Jedi Windows Security Library).
After some investigation the problem part has been brought down to a call to WTSOpenServer:
while true do
begin
hServer := WTSOpenServer(PChar('server'));
WTSCloseServer(hServe...
I'd like to align an object in X and Y by eye using the mouse to move it into position. I can roll a solution by using various spin controls (or buttons) but it's messy and I got to wondering whether there is a control - like a joystick - that provides 2-axis control using the mouse and fires events at rates which vary depending on its p...
Everyone probably knows what I mean, but to clarify the control would need to:
Fire an event when user edits the text. The event would provide a SuggestionList: TStrings which you could fill with matches/suggestions.
if the SuggestionList is not empty a drop down should appear.
Unlike combo, the control should not attempt to automatica...
A Delphi programm should make produkt photos with a Nikon D5000AF SDX. The only commands I need are "make a photo", "get me the photo".
Which library or API can help me?
...
Hi there.
In a fresh VCL application Compile and Build operation produce same binary and map file (with minor differences at the end of .exe file even if "include version information in project" option is switched off - already discussed). Map file is same bite to bite. But wen I add any third-party component the binary and map(!) fil...