How to skin THtmlViewer

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #35972
    rcrandall
    Participant

    I am using AlphaControls 8.32 and want to skin the various THtmlViewer controls in my application. I see that there are a few questions in the forums about this but no real explanation for a new person. What is the best way to do this? Just adding it to the Skin Manager ThirdParty list resulted in a crash when the program tried to run.

    Thanks in advance, Rob C

    #41008
    Support
    Keymaster

    Hello!

    I have one idea only at the moment: change all “TScrollBar” to “TsScrollBar” in the HtmlView.pas file.

    Don't forget add “sScrollBar” in the “uses” clause there.

    #51354
    rcrandall
    Participant

    Wow, that worked really well and it only took 5 minutes! It isn't very often that I get that lucky.

    Something that I was already doing was to set the THtmlViewer.DefBackground to sSkinManager1.gd[sMemo1.SkinData.SkinIndex].Color so that the background colour of the THMTL component matched the memocolour in my Alpha skin. I used the memo control because that worked well in my app but I could have sourced the colour from any of the other controls too if I had wanted to using the same technique.

    Thanks for your help, cheers, Rob C

    'Support' wrote:

    Hello!

    I have one idea only at the moment: change all “TScrollBar” to “TsScrollBar” in the HtmlView.pas file.

    Don't forget add “sScrollBar” in the “uses” clause there.

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