How to create status window...

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

How to create status window...

Post by mol »

I need to create status window while programming ECR (registering cash).
I want to use progressbar to indicate progress of operation and grid with informations about sent plu's (codes of articles) and their prices.

I've created something like that:

Code: Select all

	load window ECRStatus
	center window ECRStatus
	ECRStatus.TextBox_ECRName.Value := cNameOfECR
	show window OknoStatusTransmisji
every PLU sent to ECR could be placed to a grid as a comment of operation:

Code: Select all

ECRStatus.Grid_TransmissionStatus.AddItem( { cNameOfPLU } )
ECRStatus.Grid_TransmissionStatus.Refresh
//update progressbar
ECRStatus.ProgressBar.Value := reccount()
Everything seems to work, but no information is displayed on the screen until the whole programming is done.
Only vertical scroll of grid is moving...

And now, my question:
How to refresh window to cause the whole grid wold be visible?

Best regards, Marek
User avatar
sudip
Posts: 1456
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: How to create status window...

Post by sudip »

Hello Marek,

Have you tried

Code: Select all

DO EVENTS
within processing loop?

Please try:

Code: Select all

ECRStatus.Grid_TransmissionStatus.AddItem( { cNameOfPLU } )
ECRStatus.Grid_TransmissionStatus.Refresh
//update progressbar
ECRStatus.ProgressBar.Value := reccount()
DO EVENTS
With best regards.

Sudip
With best regards,
Sudip
User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: How to create status window...

Post by mol »

Thanks Sudip!
I remembered about DO EVENTS in the same time!

Many thanks,
Marek
Post Reply