delphi-2006 Questions
2
Solved
How to best implement a three valued logic in Delphi?
I was thinking of
type
TExtBoolean = (ebTrue, ebFalse, ebUnknown);
with
function ExtOr(A: TExtBoolean; B: TExtBoolean): TExtBoolean;
begi...
Dimmer asked 23/10, 2013 at 8:16
9
Solved
I'm wondering how the few Delphi Programming users here are doing unit testing, if any? Is there anything that integrates with the Delphi IDE that you've found works well? If not, what tools ...
Linkman asked 20/8, 2008 at 16:12
5
Solved
Does anyone know a 100% clone of the C/C++ printf for Delphi?
Yes, I know the System.Format function, but it handles things a little different.
For example if you want to format 3 to "003" you nee...
Westbrook asked 18/3, 2010 at 17:19
1
Solved
I am trying to implement an interface to convert records in a dataset to Delphi records in a pre-generics version of Delphi. I don't like the interface at the moment, as it will always need calls t...
Aristate asked 27/9, 2013 at 16:17
4
Solved
One old application started to consume memory a lot after server update. Memory usage seems to rise with out limit until program hangs.
According to FastMM4 and EurekaLog, there's no memory leak (...
Skein asked 18/10, 2011 at 11:9
1
Delphi : how to recurse down paths over 255 characters and read file attributes
I am writing a console app and need to traverse a directory structure with paths much greater than 255 characters an...
Roslynrosmarin asked 3/6, 2013 at 18:45
5
Solved
I'm trying to connect to google documents (following Marco Cantu's excellent REST example) but I am getting the following SSL errors:
1) If I use the SSL dlls from openssl-0.9.8i-i386-win32.zip I ...
Xavierxaviera asked 9/12, 2009 at 15:31
2
Solved
I am trying to retrieve accessible information from a standard VCL TEdit control. The get_accName() and Get_accDescription() methods return empty strings, but get_accValue() returns the text value ...
Jylland asked 1/5, 2013 at 15:16
2
Solved
I have written a little application that draws text on in-memory images and writes them to files. The basic Delphi code looks similar to:
var
Canvas : tCanvas;
Text : WideString;
TextRect : tRe...
Caesarean asked 25/2, 2013 at 15:49
1
Solved
Continuing with the project started in:
How to auto fit/scale DBGrid's (or other similar) columns widths according to its contents?
I used the @alzaimar answer to auto fit the columns accordi...
Investigate asked 8/11, 2012 at 20:44
4
Solved
I have a Delphi 2006 app which can pop up a modal dialog in response to an error condition. It seems to get itself into a state where one of these modal dialogs is open, positioned in front of the ...
Oxidase asked 21/3, 2012 at 19:59
2
Solved
I have a TScrollBox inside of a TFrame and when I use my mouse's wheel it simply does not goes up nor down the ScrollBox scrolling.
I have tried to use
TScrollBox(Sender).Perform(WM_VSCROLL,1,0)...
Hale asked 18/10, 2012 at 12:45
1
Solved
What it the best way to find out if a resource name exists - other than seeing if
LoadFromResourceName (HInstance, 'FOOBAR')
causes an exception?
Uncrowned asked 31/7, 2012 at 3:15
1
Solved
In my Question:
How to use “Sender” parameter with “As” operator for more then one class at a time
I choose the Remy Lebeau's Answer because it was the most dynamic tech for most situations like t...
Mandate asked 30/7, 2012 at 19:14
1
Solved
I want to make a component based on a TFrame with TLMDShapeControl (for drawing round corner background) and a TEdit control (that can be also a TComboBox or a TDBEdit and so on).
After that I will...
Superpose asked 26/7, 2012 at 18:8
4
Solved
There is a code base in delphi 2006 with no development for last many years. If the development needs to be activated what are the options.
Continue developing in 2006. (Not sure of IDE support e...
Stieglitz asked 28/5, 2012 at 2:59
4
Solved
Included is a small project demonstrating my problem. I have a TPageControl aligned to the main form. On each of two tabsheets I have panels client aligned. On each of those panels I have 2 subpane...
Ljoka asked 29/1, 2011 at 7:0
2
Solved
I am working on a project using Delphi 7 and Delphi 2006, i am developing a component that will get certain system information.
Now the requirement is that after the component is installed on the s...
Jeffrey asked 23/4, 2012 at 7:51
3
Solved
I am working on a component in Delphi 7 and Delphi 2006, where I am using a unit which I need to add to the .dpr file of the project on which the component is dropped automatically.
Like the way Eu...
Distrustful asked 24/4, 2012 at 7:1
3
Is it possible to fire an event when the user clicks outside a modal dialog?
OK, Windows provides it's own clues when you do this by making the "bonk" sound, or by flashing the app's taskbar butt...
Goldiegoldilocks asked 25/3, 2012 at 0:38
2
Solved
I have a big application with hundreds of TActions. Each of them is used and implements different functionality needed.
It is possible to catch (hook) all the TAction.OnExecute from an applicatio...
Danialah asked 21/12, 2011 at 10:8
2
Solved
I'm creating an instance of TXMLDocument at runtime, to load and parse a XML file. You can check the code below:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Grap...
Crissum asked 6/12, 2011 at 10:53
2
Solved
I'm using AllocateHWnd in a class I'm writing to receive system messages with a TWndMethod and the messages I'm receiving need to handle a 4-byte WPARAM, which specifically references a pointer. Bu...
Willett asked 3/12, 2011 at 4:20
6
Solved
Delete (0) from a TList is expensive because all the subsequent items need to be moved down. If I need to delete a large number of items from the start of an even larger list what's the fastest way...
Strawn asked 1/12, 2011 at 22:12
3
Solved
I have a number of threads (100's) that each execute for a few seconds at a time. When they are executing, they spend a significant amount of that time waiting for a response from another system (a...
Korwun asked 1/11, 2011 at 19:19
© 2022 - 2024 — McMap. All rights reserved.