Page 1 of 1

How to create status window...

Posted: Wed May 19, 2010 7:53 am
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

Re: How to create status window...

Posted: Wed May 19, 2010 8:56 am
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

Re: How to create status window...

Posted: Wed May 19, 2010 9:43 am
by mol
Thanks Sudip!
I remembered about DO EVENTS in the same time!

Many thanks,
Marek