views:

70

answers:

0

I would know how i can check that all the controls on the form is created and initialized.

I have form i am showing when user presses the 'update' button. It have only TProgressBar control.

The handle is not NULL for this control and at random stages it can or can't set the Position/Max values.

When i set TProgressBar->Max value to some integer it remains 0 after.

So the question is:

  1. How to really create the form and all controls on it (i am currently using just Form->Show() method, which as i can check calls the constructor)

    Also i have following form creation code in main cpp file:

    Application->CreateForm(__classid(TupdateProgramForm), &updateProgramForm);

  2. How to check that all controls on the form is created and PAINTED (showed and visible)