Главная страница | назад





Article #19535: ToolBar flickering

 Question and Answer Database

FAQ4535C.txt - ToolBar flickering

Category   :VCL
Platform   :All Windows
Product    :C++Builder3.x,   C++Builder4.x,   

Question:
When I perform some fucntionality that
is invoked with a dialog and takes a while to process, 
my ToolBar takes a real long time to show the buttons
that are loaded when the dialog disappears.

Answer:
Sounds like a delayed refresh of your ToolBar. To
ensure the ToolBar is immediatley updated make a call to 
ToolBar->Repaint() before you compute
but after the Dialog (or similar) is closed.  
i.e.
void __fastcall TForm1::Button1Click(TObject *Sender)
{
    if (OpenDialog1->Execute())
    {
        ToolPanel->Repaint();
        //load the files, convert, etc...
    }
}



5/25/99 11:45:20 AM
 

Last Modified: 01-SEP-99