How to skin THtmlViewer

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #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 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.