πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: dk.edb.programmering.pascal
2 messages
2 total messages Started by Nico de Jong Fri, 14 May 1999 00:00
Wits end
#1
Author: Nico de Jong
Date: Fri, 14 May 1999 00:00
22 lines
1774 bytes
Sorry for the crossposting, but I've now waisted two days trying to find a
solution for my problem.

I need to construct a program in Delphi 3 (eventually 4), activated from
another program (windows NT in this case).
After the program has started, it must show a form, which of course is no
problem.
It must then automatically start scanning a directory for filenames, and
display whatever it finds in an edit box.
The contents of the files are to be checked, and if errors are found, the
operator can choose to delete the file or not.
In other words, the form must be present before I start fiddling with the
file names.

What I've programmed until now, is put into the initialization part, i.e.
every "action" is in fact completed before the form is displayed.

Anyone have an idea on to accomplish this?

Regards

Nico (www.farumdata.dk)
Re: Wits end
#2
Author: Hans-Werner Schmidt
Date: Fri, 14 May 1999 00:00
23 lines
1550 bytes
Hello Nico,

the problem is, that windows especially windows nt performs all actions,
before it performs
the WM_Paint message.

Put your functions into the OnActivate-Method of your scan-form. To ensure
that the form is
visible you first statement in Onactivate should be SELF.UPDATE.

I think this would solve your problem.

HTH

--
H.-W. Schimidt
Individuelle Software-Erstellung
Auf dem GrοΏ½nen 5
28197 Bremen
Tel.: 0421 - 54 01 50
Fax: 0421 - 52 88 645
eMail: HWS@hw-schmidt.de
Home: http://www.hw-schmidt.de
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads