Hi,
I create vertical scrollable form layouts at runtime, depending on the user needs of that moment. The formlayouts contain kollabels, koleditboxes, kolcomboboxes, kolmemo's, kolbuttons, kolpaintboxes.
Most forms contain about 30-120 PControls, all aligned caTop.
for n:=1 to NumberOfQuestions do // 15 to 60 questions
begin
ALabel:=NewWordwraplabel(MyPanel,QuestionText[n]);
ALabel^.align := caTop;
AEditbox:=NewEditbox(MyPanel,[]);
AEditbox^. align := caTop;
{
or
APaintbox:= New...
or
ADateTime:=New...
etc etc
}
end;
I notice that if compiled for Win32/i386, the form is created allmost instantly. If compiled for WinCE/arm, the building of the form could take up to 20 seconds.
I also noticed that if I switch on the hourglass cursor at the beginning, and switch it off at the end, the hourglass is allready switched off and it still takes many seconds before the form really appears... Is this due to wince performing things in the background?
Is there a way to speed up this creation of forms?
(I did search the sources, really...)
tia
John