delphi-7 Questions

1

Solved

How to make my non-modal forms to always be on top of my main form? I have tried: procedure TForm3.CreateParams(var Params: TCreateParams); begin inherited CreateParams(Params); Params.WndParen...
Recycle asked 13/12, 2013 at 18:44

7

Solved

We have many forms in our application, and I need a global event handler to detect when one of the forms is being destroyed (and then take some action). p.s: I want to avoid adding code to each f...
Scope asked 7/12, 2013 at 19:53

3

Solved

I want to have a button with icon at the end of each row. Like here: I tried this procedure TMyFrame.sgrd1DrawCell(Sender: TObject; ACol, ARow: Integer; Rect: TRect; State: TGridDrawState);...
Gintz asked 11/12, 2013 at 9:6

4

Solved

I m working with Delphi 7 and I want to find out the path of my .. /All Users/Documents directory. I came across the following code uses shlobj, ... function GetMyDocuments: string; var r: Boo...
Tinned asked 3/1, 2012 at 13:9

3

Solved

Do I need to call Coinitialize in the main/VCL thread in Delphi before using ShellExecuteEx? For a thread, yes but for the VCL thread ?
Jalousie asked 14/11, 2013 at 17:53

2

Solved

I have these 2 classes: type TMyBaseClass = class protected FAllowDoSomething: Boolean; // initialized to False procedure DoSomething; virtual; end; TMyChildClass = class(TMyBaseClass) pro...
Loxodromic asked 13/11, 2013 at 10:39

1

Solved

in a thread, is there a difference if I use Coinitialize(nil) instead of CoInitializeEx(0, COINIT_MULTITHREADED); I use Delphi 7 but I presume the question can remain for other programming ...
Yangyangtze asked 9/11, 2013 at 19:35

3

Solved

I have on a form some custom progress bars which are updated/refreshed twice per second and they are flickering. TMyProgressBar = class(TCustomControl) I inherited the control from TCustomContr...
Discant asked 5/11, 2013 at 17:12

2

Solved

I am using this code to detect the WindowsVersion on a PC. function GetOS: string; var osVerInfo: TOSVersionInfo; majorVer, minorVer: Integer; begin Result := 'Unknown'; osVerInfo.dwOSVersionIn...
Insphere asked 11/5, 2012 at 19:14

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

1

Solved

I making something that looks like Paint in Delphi. I found how to make zoom function: procedure SetCanvasZoomFactor(Canvas: TCanvas; AZoomFactor: Integer); var i: Integer; begin if AZoomFactor ...
Unexacting asked 19/10, 2013 at 17:50

5

Solved

Using Delphi 7, is there anyway to force inputbox to allow only numbers entry from 0 to 100 ? Thanks!
Larrainelarrie asked 15/4, 2011 at 15:4

4

Solved

I want to do something like this: SQL.Text := Format('select foo from bar where baz like ''%s%''',[SearchTerm]); But Format doesn't like that last '%', of course. So how can I escape it? \%? %%?...
Kempis asked 6/11, 2008 at 2:33

1

Solved

I want to connect to an excel 2007 file(.xlsx) using delphi 7, so I used a AdoConnection and set its connectionstring property as: Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\test\qm\Results-s...
Plasty asked 23/9, 2013 at 5:42

2

Solved

Is this even possible? Notepad++ for example does it, but simply trying to assign it to components like actions or menu items doesn't work. The event it is assigned to simply doesn't trigger. So, ...
Greatcoat asked 10/9, 2013 at 16:18

2

When using TIdHttp like this: Memo1.Text := IdHTTP1.post(url,data); I can get response content to memo1 if it doesn't give http error. But when it gives http bad request, Indy doesn't give me co...
Comeback asked 31/8, 2013 at 14:48

4

im trying to send a message between 2 separate projects, but my problem is that im trying to make the receiver run inside a TThread Object, but WndProc wont work from inside an Object, must be a fu...
Cobbler asked 3/9, 2010 at 18:38

4

Solved

I wrote a TThread descendant class that, if an exception is raised, saves exception's Class and Message in two private fields private //... FExceptionClass: ExceptClass; // --> Class of Exce...
Letitialetizia asked 30/7, 2013 at 7:24

1

Solved

I have a Label that is indicating a file size with FormatFloat('##.## KB',BytesIn/OneKB); and it all worked fine when the files were all under about 2MB. Now I am sometimes using files 2GB and ...
Zing asked 10/7, 2013 at 19:2

4

Solved

I wrote a Win32 application (in Delphi-7 which is 32-bit using TThread class) to create 100 threads. Each thread when resumed will continuously (in a loop) increment a 64 bit counter associated wit...
Trihydric asked 13/8, 2012 at 21:47

5

Solved

Hi I want to retrieve HDD unique (hardware) serial number. I use some functions but in Windows Seven or Vista they don't work correctly because of admin right. Is it possible retrieve it without ru...
Bile asked 5/3, 2011 at 6:58

1

Solved

Objective: Click on the button on the TRxDBCombo to call a search box On Selecting the record from search box, the result is set as Field Value for the TComboEditBox and is posted in the TRxMemor...
Three asked 26/6, 2013 at 6:25

1

Solved

With respect to a TEdit component, would it be possible for the component to handle a multi-line paste from the Windows Clipboard by converting line breaks to spaces? In other words, if the follow...
Womanish asked 21/6, 2013 at 3:13

3

Solved

If you copy files under Windows 7, you will see the progress of the copy in a sort of progress bar begin displayed in the status or task bar button of the application. Can this be achieved using D...
Elisa asked 28/4, 2011 at 6:53

3

Solved

I have this code right here to retrive the IP-address from a hostname: program Project1; {$APPTYPE CONSOLE} uses SysUtils, winsock; function GetIPFromHost(const HostName: string): string; typ...
Stieglitz asked 29/1, 2012 at 3:33

© 2022 - 2024 — McMap. All rights reserved.