digao-dalpiaz / DzHTMLText

Delphi and Lazarus HTML Label component
MIT License
194 stars 53 forks source link

Idea: Scrolls ? #55

Closed Chandlr closed 10 months ago

Chandlr commented 3 years ago

Hi iam wondering if you could add scrollbars in the tags :) eg:

<: div style="overflow-y: scroll;":>long text here then scrolls<:/div:>

Also the version in about is still 3.5

digao-dalpiaz commented 3 years ago

Hello @Chandlr

I will analyze the possibility of including this feature.

About the version, yes, it's an error between VCL and FMX version. There is a new version 3.7 coming soon. This is already fixed in new version.

digao-dalpiaz commented 3 years ago

Hello,

So, I was thinking... we could make the scroll bar for the whole component, using a property for that.

In the other hand, using tags to apply scroll bars is much more complex, because the component does not support fixed size area text (by height).

Chandlr commented 3 years ago

Hi :) Do as you please but it would indeed be prettier using the complex way, no idea how it would look yet but the property for scrollbars would work also. So go for which solution you find better :)

jonahzheng commented 2 years ago

@digao-dalpiaz hi,how does DzHTMLText set scroll? I use TVertScrollBox as parent of DzHTMLText, but It is not fluency in ios.

digao-dalpiaz commented 2 years ago

@jonahzheng ,

The component does not include scroll bars feature. But you can use TScrollBox and insert DzHTMLText inside the Scroll Box component, using auto height and fixed width.

jonahzheng commented 2 years ago

yes, I use TScrollBox, but scrolling isn't as smooth in ios. it is as smootch in windows.

digao-dalpiaz commented 1 year ago

@jonahzheng Please, try to apply a background color in DzHTMLText component, because when you leave the background color null, the component will use transparent behavior, so you can get flickering due to transparency painting. Using fixed background color may avoid flickering when repainting component (occurs when you are moving scroll bar)

digao-dalpiaz commented 11 months ago

Hello @jonahzheng , Did the scroll bar work correctly when using background color?

digao-dalpiaz commented 10 months ago

Closing the issue as there was no more information.