Hi,
I have several Objects in a Scrollbox. I'm using a Trackbar to resize these objects, which is really slow when the Skinmanager is Active (it works well if it is inactive).
I already tried
TsScrollBox->SkinData->BeginUpdate();
in the UserChanged / MouseDown Event. It helps a bit, but its not satisfying.
Here is a quick n dirty code:
std::vectorv;
Code:
void __fastcall TForm1::sButton1Click(TObject *Sender)
{
for(int i=0; i<40; i++)
{
v.push_back(new TForm1(this));
v.back()->Parent = sb;
v.back()->Show();
}
}
Code:
void __fastcall TForm1::sTrackBar1UserChange(TObject *Sender)
{
sb->SkinData->BeginUpdate();
int iLeft = 0;
for(unsigned int i=0; i
{
v
->Left = iLeft;
v
->Width = sTrackBar1->Position;
v
->Height = sTrackBar1->Position;
iLeft += v->Width;
}
}
Code:
void __fastcall TForm1::sTrackBar1MouseUp(TObject *Sender,
TMouseButton Button, TShiftState Shift, int X, int Y)
{
sb->SkinData->EndUpdate();
}
I'm using Version 6.45 / BCB6
Best regards