Avatar of gem56
gem56

asked on 

How to tell when screen update has completed

Hi experts,
I have an application that creates a lot of screen objects. I want to implement a progress bar but I'm finding that it can take a while (seconds) for all the objects to physically appear on the screen. The added complication is that, depending on the view magnification factor in my code, some of those objects in fact appear off the screen which makes it even more important to tell when that's done so that the progress indicator can be removed.

My question is how can I tell (in code) if all the screen objects have been painted on the screen?

Cheers,
     Michael
Visual Basic Classic

Avatar of undefined
Last Comment
DarkoLord
Avatar of DarkoLord
DarkoLord
Flag of Slovenia image

Do you draw objects manually with your code, or do you just create an object and wait for system to draw it?

Darko
Avatar of gem56
gem56

ASKER

Hi Darko,
I'm not exactly sure what you mean. I create an object using:
    Load ThisRun.FormRunSpec.shpTier(lTierIndex)
    .......

The shape resides in a picture box that has AutoRedraw set to False.
Eventually I execute DoEvents and that's about it. The shapes appear
OK and without (from what I can notice) any flicker.

When uloading screen objects I also execute xxx.Refresh to see teh objects disappear one by one (to show activity).

Does that answer your question and if not, please give me an example?

Cheers,
     Michael
ASKER CERTIFIED SOLUTION
Avatar of DarkoLord
DarkoLord
Flag of Slovenia image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Visual Basic Classic
Visual Basic Classic

Visual Basic is Microsoft’s event-driven programming language and integrated development environment (IDE) for its Component Object Model (COM) programming model. It is relatively easy to learn and use because of its graphical development features and BASIC heritage. It has been replaced with VB.NET, and is very similar to VBA (Visual Basic for Applications), the programming language for the Microsoft Office product line.

165K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo