Vertical scroll bar in TsWebBrowser not skinned

Viewing 20 posts - 1 through 20 (of 22 total)
  • Author
    Posts
  • #56455
    Support
    Keymaster

      Is it possible to make a test-app for this issue?

      #56466
      HeDiBo
      Participant
        'Support' wrote:

        Is it possible to make a test-app for this issue?

        Here it is:

        [attachment=8238:acWebBrws.zip]

        #56501
        HeDiBo
        Participant

          Problem still exists in AC 12.05

          #56513
          Support
          Keymaster

            I'm sorry, I can't compile the demo. The 'Common' doesn't exists.

            #56516
            HeDiBo
            Participant
              'Support' wrote:

              I'm sorry, I can't compile the demo. The 'Common' doesn't exists.

              You probably already found the correct version:

              http://www.alphaskins.com/forum/index.php?showtopic=9513&st=0#entry50100

              #56527
              Support
              Keymaster

                You can remove 1 topic, I think…

                #56530
                HeDiBo
                Participant
                  'Support' wrote:

                  You can remove 1 topic, I think…

                  The topic you're referring to is an offer to include the code into one of the upcoming releases of AC.

                  The same code is used here to show a bug in the TsWebBrowser component.

                  So both topics serve their own purpose.

                  #56532
                  HeDiBo
                  Participant
                    'Support' wrote:

                    Thank you

                    I can suggest you to hide this control in the document body style:

                    Code:

                    I can't remove this scroll by delphi code, unfortunately, because it's drawn in the document and I have no idea how to do it currently.

                    In principle, this is a good solution, but the TsWebBrowser component will show a horizontal scroll bar if the HTML text does not fit the window.

                    It should not do that, in fact it should almost never do that, because the text should be wrapped.

                    It's almost impossible to get rid of the horizontal scroll bar.

                    To illustrate, this is the same demo project, but with the suggested addition of disabling the vertical scroll bar:

                    [attachment=8260:acWebBrowseScroll.zip]

                    Try to get rid of the horizontal scroll bar.

                    #56533
                    HeDiBo
                    Participant
                      'HeDiBo' wrote:

                      In principle, this is a good solution, but the TsWebBrowser component will show a horizontal scroll bar if the HTML text does not fit the window.

                      It should not do that, in fact it should almost never do that, because the text should be wrapped.

                      It's almost impossible to get rid of the horizontal scroll bar.

                      Setting SkinData.HorzScrollData.ScrollWidth to 0 will do the trick. But that would disable the horizontal scroll bar for all content.

                      #57454
                      HeDiBo
                      Participant

                        [Content was edited mistakenly by Serge]

                        #57455
                        Support
                        Keymaster

                          Thank you for the demo.

                          I know how to remove a scrollbar, but I don't know When I must do that.

                          That's the problem, I can't catch event when visivility of scrollbar is changed.

                          #57459
                          HeDiBo
                          Participant
                            'Support' wrote:

                            Thank you for the demo.

                            I know how to remove a scrollbar, but I don't know When I must do that.

                            That's the problem, I can't catch event when visivility of scrollbar is changed.

                            What's the best way to remove the scrollbar? Maybe I can do it myself?

                            #57460
                            Support
                            Keymaster

                              Try this line:

                              Code:
                              WebBrowser.OleObject.Document.Body.Style.OverflowY := 'hidden';
                              #57469
                              HeDiBo
                              Participant

                                Just an observation:

                                Every time a webpage does not fit the window, a nicely themed vertical scrollbar appears. Apparently AC is able to find out when to draw this scrollbar. Then if the page does fit the window, the themed scrollbar disappears. And it comes back again when the page does not fit the window.

                                Now you're saying that you do not know when to remove the standard scrollbar. But in a way AC does this already. Because when you remove the styled scrollbar, that's also the time to remove the standard vertical scrollbar.

                                Just a thought.

                                #57485
                                Support
                                Keymaster

                                  Hello!

                                  I will try to do it, but my solution for hiding of std scrolls is not universal, seems.

                                  Have you checked this code more?

                                  #57495
                                  HeDiBo
                                  Participant
                                    'Support' wrote:

                                    Hello!

                                    I will try to do it, but my solution for hiding of std scrolls is not universal, seems.

                                    Have you checked this code more?

                                    I've done better than that, I've found a good solution to this.

                                    Have a look at this article. It comes complete with a demo program. Its principle is to host the webbrowser in a specially crafted IDocHostUIHandler interface. By doing so, apparently you can show and hide the vertical scroll bar at will.

                                    #57498
                                    Support
                                    Keymaster

                                      Thank you for a link

                                      Do you have pages examples which I can test? Where scrollbar is shown as not skinned.

                                      #57519
                                      HeDiBo
                                      Participant
                                        'Support' wrote:

                                        Thank you for a link

                                        Do you have pages examples which I can test? Where scrollbar is shown as not skinned.

                                        This one is fairly short: [attachment=8605:CorrPersonsED.html]

                                        This one is a little bigger: [attachment=8606:Participants.Pairs.html]

                                        #57523
                                        Support
                                        Keymaster

                                          Thank you for files

                                          I have tried to implement a hiding of standard scrolls, try the attached file, plz.

                                          #57530
                                          HeDiBo
                                          Participant
                                            'Support' wrote:

                                            Thank you for files

                                            I have tried to implement a hiding of standard scrolls, try the attached file, plz.

                                            Thanks Serge a7.gif

                                            It works like a charm, except for one problem:

                                            If the web window is resized, making it smaller and making the AC scroll bar appear, there is no redrawing of the web page, and that causes a text clipping:

                                            [attachment=8617:WebPage Unclipped.jpg]

                                            goes to:

                                            [attachment=8618:WebPage Cllipped.jpg]

                                            Look at the upper right: text falls off the window.

                                            The other way around (going from a scrolled window to a full one) the page is redrawn correctly. So it is probably a simple oversight.

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