Resizing in TsScrollBox very slow

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #35043
    Raccoon
    Participant

    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

    #47766
    Raccoon
    Participant

    I tried Alphaskins 7.60, yesterday. Still no improvement.

    Best regards

    #47799
    Support
    Keymaster

    Hello Raccoon

    What is a type of resized objects? TsButton?

    They are aligned? Maybe you can give a little demo with this issue?

    #47802
    Raccoon
    Participant

    Hi,

    I'm resizing Forms.

    Demo attached.

    Best regards

    #47889
    Raccoon
    Participant

    Any news here?

    #47921
    Support
    Keymaster

    Hello

    Thank you for the demo. I see that application have problems without skins even.

    It's slow on my PC and forms loses themes when resized.

    And try to add a Manifest into application. I think, the application will be more slow.

    Repainting is slow because all images are calculated in real time…

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.