Skinning TDBGridEh problems

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #37111
    Saeidd2016
    Participant

    Hello,

    Skinning TDBGridEh has 2 problems:

    1.If we set the SkinManager.HueOffset to any number other than zero the color of selected row in DbGridEh does not change with new HueOffset of skin.

    2.If the DbGridEh is invisible on program starting and we make it visible at runtime the SkinManager does not skin it and we should write this code to skin it:

    Code:
    sSkinManager1.BeginUpdate;
    sSkinManager1.EndUpdate(True, True);

    Please help.

    #55479
    Support
    Keymaster

    Hello

    'Saeidd2016' wrote:
    1.If we set the SkinManager.HueOffset to any number other than zero the color of selected row in DbGridEh does not change with new HueOffset of skin.

    DBGridEh selection uses standard color, seems. Try to enable the sSkinManager1.Options.ChangeSysColor property.

    Quote:
    2.If the DbGridEh is invisible on program starting and we make it visible at runtime the SkinManager does not skin it and we should write this code to skin it:

    Code:
    sSkinManager1.BeginUpdate;
    sSkinManager1.EndUpdate(True, True);

    We can't catch this changing of the Visible property automatically, so, you should use such code in this case:

    Code:
    DBGridEh1.Visible := True;
    if sSkinProvider1.Adapter nil then
    sSkinProvider1.Adapter.AddNewItem(DBGridEh1);
    #55510
    Saeidd2016
    Participant
    'Support' wrote:

    Hello

    DBGridEh selection uses standard color, seems. Try to enable the sSkinManager1.Options.ChangeSysColor property.

    I did it but not work and DBGridEh selection color still is standard color.

    'Support' wrote:

    We can't catch this changing of the Visible property automatically, so, you should use such code in this case:

    Code:
    DBGridEh1.Visible := True;
    if sSkinProvider1.Adapter nil then
    sSkinProvider1.Adapter.AddNewItem(DBGridEh1);

    I did it but not work and DBGridEh not skined.

    #55544
    Saeidd2016
    Participant

    Please Help to solve this problem

    #55545
    Support
    Keymaster

    Hello

    Sorry for a long delay. Can you send me a small demo where this code doesn't work, please?

    I need more information because I can't repeat it.

    #55547
    Saeidd2016
    Participant
    'Support' wrote:

    Hello

    Sorry for a long delay. Can you send me a small demo where this code doesn't work, please?

    I need more information because I can't repeat it.

    I attached the demo.

    #55548
    Support
    Keymaster

    Thank you, I see a difference now.

    New versions of DBGridEh uses scrollbars as separate controls, it's a reason of problem in skinning of scrollbars.

    This issue will be solved on this week in the new release of the AlphaControls.

    Drawing of the selection may be changed in the DBGridEh1.SelectionDrawParams property, set SelectionStyle to gsdsClassicEh there.

    #55564
    Saeidd2016
    Participant
    'Support' wrote:
    New versions of DBGridEh uses scrollbars as separate controls, it's a reason of problem in skinning of scrollbars.

    Also other components of Ehlib uses scrollbars as separate controls such as DBComboBoxEh , etc.

    also VirtualTreeView scrollbars not skined.

    #55589
    Support
    Keymaster

    Hello!

    What is version number of used VirtualTreeView?

    Could you show me a demo with unskinned scrollbars in VirtualTreeView, please?

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