delphi-7 Questions

1

Solved

I need to intercept the TAB keyboard stroke on TEdits and suppress them programmatically. In certain cases I don't want the focus to change to the next control. I tried to handle KeyPress, KeyDown...
Siobhansion asked 6/5, 2012 at 11:7

3

Solved

My application needs a lot of PNGs and I often mess up my code while trying to work with them. To make my life easier I made one big PNG image in Realword Paint and pasted all those small PNG image...
Wack asked 30/4, 2012 at 7:34

1

I have this function in our Delphi 7 application, which worked very well until I included FastMM4 v4.99 into the project. Once included, FastMM4 raised the following error message: "FastMM has dete...
Flameproof asked 26/4, 2012 at 8:41

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

2

Solved

I am working on a database program, using the dbExpress components (Delphi 7). The data is retrieved from the database via the following components: TSQLDataSet -> TDataSetProvider -> TClientDataSe...
Bradstreet asked 12/4, 2012 at 10:49

1

Solved

I have got a procedure which searches for a file entered by the user in a path and subpaths, i have a good understanding of the most of it except for this line: if ((Rec.Attr and faDirectory) <...
Carpogonium asked 19/4, 2012 at 23:30

1

Solved

Is there a simple/clever way to load the standard Windows TEdit menu into this TRichEdit? I know that I could create a simple menu to simulate the TEdit menu for the simple operations like copy/p...
Unarm asked 18/4, 2012 at 17:34

1

Solved

I need simple TMemo that does NOT display scroll bars when they are not needed (ie insufficient text), but does when they are. something like ScrollBars = ssAuto or like the TRichEdit HideScrollBar...
Mumbletypeg asked 18/4, 2012 at 15:17

1

Solved

I have some image-files stored into one file (some kind of archive). That file looks like this: Well, it's separated into two segments - header and data-segment. Header (green) contains various ...
Thyroxine asked 17/4, 2012 at 22:39

1

Solved

When I try to open any site that has double-quotes (") inside the link , for ex. user.php?name="stackoverflow" it just cuts " or sometimes it redirects me to Google!? Used code: ShellExecute(0, 'o...
Viol asked 14/4, 2012 at 14:58

1

Solved

I want to prevent iframe elements from triggering the OnDocumentComplete event every time. For example, a page has 4 iframes, and when I load this page, my OnDocumentComplete event runs 4 times. I ...
Pyrrha asked 11/4, 2012 at 11:38

1

Solved

My app has a worker thread, and I use PostMessage to send a string to the main thread. For 1 message, the string is truncated when it gets to the message handler in the main thread. The string is ...
Hysterical asked 29/3, 2012 at 19:30

1

Solved

I have an app which creates a thread which communicate with the main UI via windows messages. It simply send the message to the main app thread and received the status. That way I am displaying mo...
Appellee asked 19/3, 2012 at 11:53

1

Solved

I've added some code to my delphi project to interact with the registry, using some tutorials I found online to guide my effort. Every example I've seen seems to use this structure for their regist...
Scissor asked 17/3, 2012 at 17:46

3

Solved

I am trying to implement a simple text file encryption technique and I am using the following code to do so. The code is not written by me, I just googled and got it. The encryption technique seems...
Valais asked 28/2, 2012 at 12:58

1

Solved

I would like to execute a child process and synchronize it (possibly with Mutex) without waiting for the child process to terminate: Parent: program Project1; {$APPTYPE CONSOLE} uses Windows, Sh...
Pothead asked 23/2, 2012 at 14:12

2

Solved

If a mouse button is pressed and a window is shown that window will receive the MouseUp event when the mouse button is released. Is it possible to detect, once the window is shown, whether or not ...
Straightforward asked 23/2, 2012 at 12:36

2

Solved

I have been dealing with FTP lately and I'm not sure about the security of the Indy component TIdFTP. That is why I have created some tests which I want to share with you so you could give your opi...
Kaunas asked 11/2, 2012 at 13:14

1

Solved

I have this chunk of code which I found and implemented according to http://www.activexperts.com/activmonitor/windowsmanagement/scripts/networking/windowsfirewall/ procedure AddExceptionToFirewall...
Macswan asked 7/2, 2012 at 16:51

1

Solved

Currently I am adding object by creating it like: type TRecord = class private str: string; num: Integer; public constructor Create; end; ... procedure TForm1.Button2Click(Sender: TObje...
Taboret asked 5/2, 2012 at 7:45

4

Solved

I have in my current Delphi 7 project (named, say, Project1.dpr), two files (Project1.dof and Project1.cfg) which my team and I can't decide to put under version control (we use Mercurial btw). The...
Galloping asked 27/1, 2012 at 15:28

1

Solved

I'm using TADODataSet (D7). I do not create persistent fields in design-mode with my DataSet. dsItems.CommandText := 'select ID, ItemName, UserIDCreate from Items'; dsUsers.CommandText := 'select...
Stines asked 30/1, 2012 at 12:51

1

Solved

Years ago, I decided never to rely solely on setting a thread's FreeOnTerminate property to true to be sure of its destruction, because I discovered and reasoned two things at application's termina...
Allude asked 27/1, 2012 at 6:28

2

Solved

When I'm calling a Dll method it sometimes throws an exception, and sometimes doesn't. I'm calling it like this: public class DllTest { [DllImport(@"MyDll.dll")] public extern static string My...
Sandie asked 16/12, 2011 at 11:25

© 2022 - 2024 — McMap. All rights reserved.