Showing message - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Showing message

How to show a message on the screen to advise that the programme is trying to locate a record in a very large Table?
I use a label with the caption 'Locating record.Please wait' with its
property Visible set to False at design time.
I use Label1.Visible := True right before the locate function and
Label1.Visible := False after the record is located.

The wording seems logical but the fact is that the label is NEVER shown
on the screen.

Can anyone advise the correct technique to use in order to have the label duly displayed?.


Thanks a lot in advance.


Comments

  • zibadianzibadian Posts: 6,349Member
    : How to show a message on the screen to advise that the programme is trying to locate a record in a very large Table?
    : I use a label with the caption 'Locating record.Please wait' with its
    : property Visible set to False at design time.
    : I use Label1.Visible := True right before the locate function and
    : Label1.Visible := False after the record is located.
    :
    : The wording seems logical but the fact is that the label is NEVER shown
    : on the screen.
    :
    : Can anyone advise the correct technique to use in order to have the label duly displayed?.
    :
    :
    : Thanks a lot in advance.
    :
    :
    :
    You should call Application.ProcessMessages(), right after setting the visibility. This will allow the program to repaint, before the long process of locating the record starts. It is also advisable to call Application.ProcessMessages() once every so often, so that the applciation doesn't appear to be locked or unresponsive.
Sign In or Register to comment.