Different behavior between Standard VCL and AlphaSkins controls

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #37707
    Stephane Senecal
    Participant

    Normally, when creating a form with a PageControl on it, only the controls that are visible on the selected TabSheet will request a window handle.

    Only when changing to another TabSheet, the newly visible controls will request a window handle so they can be displayed.

    This mechanic from Delphi VCL makes it quite fast to create a form with many controls on it.

    I noticed that, with AlphaControls, all components will request a window handle when the form is created.

    This cause significant slow down in our application with more than 2000 components on one form (on many pages).

    Hoping you can do something about that.

    Thank you.

    Stephane Senecal
    CIS Group
    Delphi programmer since 2001

    #57483
    mol
    Participant

    2000 components on one form using a TPageControl? High time to rethink your design choices. Why on earth are you using a TPageCtrl instead of TFrame? You can create and destroy the latter on demand and keep the footprint on your form really small.

    -Uwe

    #57490
    Support
    Keymaster

    Hello Stéphane

    The problem is that standard and thirdparty controls are handled after creation immediately, because later initialization may be too late.

    If control is initialized when showing is changed then we can have some ugly blinking or other not good things. I hope, you understand what I mean.

    Can you send me this huge form to the support@alphaskins.com?

    I will research it and make some tests. Maybe I will have some suggestions.

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