delphi-7 Questions
2
Solved
my app is a non-unicode app written in Delphi 7.
I'd like to convert unicode strings to ANSI with this function :
function convertU(ws : widestring) : string;
begin
result := string(ws);
end;
...
Hypesthesia asked 9/9, 2012 at 6:54
2
Solved
I have one fundamental doubt in Delphi. When I keep any component at design time, say for example TADOConnectuion and on button click even I write following code then I do not get any error:
begin...
Freehanded asked 30/8, 2012 at 8:53
1
Solved
Alright I got something really tricky here...
I would like to DRAW/USE Headers to a ChildNode.
I think the idea is reasonable because it would look amazing to have headers in subnodes so the childn...
Womanize asked 27/8, 2012 at 17:0
1
Solved
I would like to select either all root nodes or all child nodes (not all nodes in a VirtualTreeView).
I've tried to use this code to select all root nodes:
procedure SelectAllRoots;
var
Node: PVi...
Gerfen asked 27/8, 2012 at 12:45
1
Solved
this is my simple code to generate
all possible combinations of a set for
example
1,2,3:
Display:
123
132
213
231
312
321
i want to create variable number of for loops to let the user deter...
Spermato asked 26/8, 2012 at 17:2
1
Solved
I have a messy Delphi 7 legacy system to maintain and develop. I am already reading "Working effectively with legacy code" and I like this book very much.
In order to start following the advices ...
Inman asked 21/8, 2012 at 11:10
2
Solved
I'm using delphi 7.
I need to log to a file the complete informations of any exception that occurs.
Normally I use Eurekalog. This wonderful product shows a dialog with all the stack trace inform...
Gopherwood asked 13/8, 2012 at 15:51
2
Solved
When I asked this question a while ago, the FastString unit came to solve my problem.
Now I am starting to migrate my software from D7 to XE2. My question is, what alternatives do I have now since...
Caritacaritas asked 30/1, 2012 at 23:51
1
I am dyanamically creating speedbuttons in tab change procedure, i want to made speed button disabled , when it is disabled it is not showing the loaded image. how to show the image on speed button...
4
Solved
In other languages like C++, there are operators to do a plus-equals or or-equals type of operation to add additional styles/flags. Is there an equivalent in Delphi?
Right now I have some code lik...
3
Old title: How many classes per unit are advisable to have?
My question is specific to Delphi. I think that in Java and C# world it is a rather accepted practice to generally have one file p...
3
Solved
Is there any way to make a control transparent like button, edit, panel or etc...? I mean something like opacity or alpha blend that we have in form property.
1
Solved
I'm trying to make a console application based on Indy's IRC Component (TIdIRC) but I'm having trouble with events. Here's my code:
program Project1;
{$APPTYPE CONSOLE}
uses
SysUtils,
Classes,...
Visional asked 6/7, 2012 at 14:43
2
I am working with Delphi application.I created one form shown as below:
I wanted to make component out of this controls through code. But not through component-->create component Template-->so o...
1
Solved
I've searched around online but can't find what I'm after. Basically, during an install, we fire off a separate executable that basically brute forces a few folders to be read/write enabled for the...
1
I wrote a D7 application to test the behaviour of Application.OnActivate .
This is the relevant part :
procedure TMainForm.FormCreate (Sender: TObject);
begin
Memo1.Lines.Add (IntToStr (Memo1.Line...
1
Solved
I have a C++ DLL that I wrote that has a single exposed function, that takes a function pointer (callback function) as a parameter.
#define DllExport extern "C" __declspec( dllexport )
DllExport...
2
Solved
I am working on an application where i have a combobox with long text values.Since the text values are large(in term of characters ..20 or more), to display in the combobox, the requirement was to ...
1
Solved
I have the following procedure :
procedure GetDegree(const num : DWORD ; var degree : DWORD ; min ,sec : Extended);
begin
degree := num div (500*60*60);
min := num div (500*60) - degree *60;
se...
2
Solved
I am using delphi 7 and need to uncompress a compressed zip file which contains multiple files, I have found examples of how to unzip a single file using ZLib but cannot find any examples of this w...
1
Solved
When creating a TMenuItem runtime as shown below:
mi := TMenuItem.Create([owner]);
and adding to a TPopupMenu like so:
PopupMenu1.Items.Add(mi);
Do I need to specify the [owner] as PopupMenu1 o...
1
Solved
I want to clone an entire TMenuItem with it's children to another TPopupMenu.
Here is a nice code:
function CloneMenuItem(SourceItem: TMenuItem): TMenuItem;
var
I: Integer;
Begin
with SourceItem...
1
Solved
I'm using VT.Background to display a background image in VT with a few columns.
But I can't find a way to use different colors for cells because they hide the background image.
I have tried to us...
Manwell asked 10/5, 2012 at 15:11
2
Solved
Using delphi 7 TRichEdit component, RTF data is being imported from a msword document through copy and paste, but if data is contained in a box, it is not displaying correctly i.e.
Please assist...
2
Solved
I'm stuck on a problem in Delphi 7 about event propagation (due to my ignorance).
I am asked to dynamically attach an OnMouseUp event handler on some controls on a form (and I'm fine with that thi...
Georgenegeorges asked 8/5, 2012 at 10:7
© 2022 - 2024 — McMap. All rights reserved.