DzHTMLText icon indicating copy to clipboard operation
DzHTMLText copied to clipboard

Idea: Scrolls ?

Open Chandlr opened this issue 4 years ago • 6 comments

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

Chandlr avatar Jul 28 '21 07:07 Chandlr

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 avatar Jul 28 '21 14:07 digao-dalpiaz

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).

digao-dalpiaz avatar Jul 30 '21 01:07 digao-dalpiaz

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 :)

Chandlr avatar Jul 30 '21 06:07 Chandlr

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

jonahzheng avatar Aug 30 '22 07:08 jonahzheng

@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.

digao-dalpiaz avatar Sep 04 '22 12:09 digao-dalpiaz

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

jonahzheng avatar Sep 05 '22 03:09 jonahzheng

@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 avatar Apr 28 '23 03:04 digao-dalpiaz

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

digao-dalpiaz avatar Dec 12 '23 12:12 digao-dalpiaz

Closing the issue as there was no more information.

digao-dalpiaz avatar Jan 21 '24 17:01 digao-dalpiaz