Solved

ProcessBar showing LoadFromFile

Posted on 1997-07-28
5
322 Views
Last Modified: 2010-05-18
I load a file into a TRichEdit and since the file is big I would like to show to the end-user how long we are in the loading.
Can you make a ProcessBar process according to some functionality made by others eg. LoadFromFile?

Thanx - Steff
0
Comment
Question by:steff
  • 2
  • 2
5 Comments
 
LVL 2

Expert Comment

by:icampbe1
ID: 1340084
I don't think so.  I haven't checked for sure, but I'll bet that LoadFromFile uses a TStream (FileStream) internally, and the load occurs in one big chunk.   I doubt that it's worth it to find some method to override in order to break it into smaller chunks just to meter it (and subsequently slow down the load).

Ian C.

0
 

Expert Comment

by:leja
ID: 1340085
I have a solution in the form of D2.0 source codes of how to create a descending class of TCustomMemo, behaves exactly like a TMemo but sends progressevents to the owner.
Full source code and example of how to use it. Interested?
0
 

Author Comment

by:steff
ID: 1340086
Well, icampbe1. You didnt give any answer - but thanks for the comment.
leja - I would be interested in the source code.
My e-mail is u960617@daimi.aau.dk

Thanx - Steff
0
 

Accepted Solution

by:
leja earned 20 total points
ID: 1340087
I'll send it right away...
Don't forget the points;-)
0
 

Author Comment

by:steff
ID: 1340088
Nice!

I could never forget the points :-)

Steff
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now