Weird TsListViews anomaly

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #33579
    DavidL
    Participant

    Hi

    I have an application that I created some time ago in Delphi 2006 with an older version of AlphaControls. I ported it to Delphi 2009 and AlphaControls 6.56 and all seemed well. I wanted to replicate the general design of this app for a new project, so I copied-pasted the TsSkinManager and TsSkinProvider from the old app to the new, along with a TsListView control.

    After doing this, I noticed that the TsListViews in the two applications look different to each other…at both design time and runtime. And yet they should be the exact same component.

    * I checked to make sure the same skin was used in each project.
    * I checked the properties of all components and the form itself, and they’re all absolutely identical.

    And yet the visual difference remains:

    * The column headings of the TsListView in the new app is higher than the old app.
    * The row select bar in the new app displays a small break between each column.

    Design (old app then new app):
    [attachment=3789:OldAppDesigntime.jpg]
    [attachment=3791:NewAppDesigntime.jpg]

    Runtime (old app then new app):
    [attachment=3790:OldAppRuntime.jpg]
    [attachment=3792:NewAppRuntime.jpg]

    I've obviously missed something, but I've been over these components a dozen or so times. I've tried the executables on a different PC, and they exhibit the same behaviour as on my development PC.

    Has anyone seen anything like this, or can offer any explanation? (I've attached some code samples in case anyone is interested.)

    [attachment=3793:OldApp.zip]
    [attachment=3794:NewApp.zip]

    Thanks!

    Environment:
    – Windows Vista
    – Delphi 2009
    – AlphaControls 6.56

    #41807
    Support
    Keymaster

    Hello and thank you for demo-programs. I think, you must set “Enable runtime themes” option in the new project and problem will be solved

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