disable scrollbar in TextCtl | developer.brewmp.com disable scrollbar in TextCtl | developer.brewmp.com

Developer

disable scrollbar in TextCtl

Forums:

Hi,

How do you disable scrollbar in TextCtl? I don't want it to appear and free the space for text display. I didn't find anything relating to that.

Thanks

This functionality does not currently exist in the ITextCtl API.
The upcoming BREW UI Toolkit will have much greater flexibility in this regard.

This functionality does not currently exist in the ITextCtl API.
The upcoming BREW UI Toolkit will have much greater flexibility in this regard.

nparrish wrote:This functionality does not currently exist in the ITextCtl API.
The upcoming BREW UI Toolkit will have much greater flexibility in this regard.
Is there any way to simulate this since no offical API is available?
Thanks.

nparrish wrote:This functionality does not currently exist in the ITextCtl API.
The upcoming BREW UI Toolkit will have much greater flexibility in this regard.
Is there any way to simulate this since no offical API is available?
Thanks.

You could try a cheap hack, like drawing a grey (or whatever color) rectangle on top of the scroll bar, but that's not going to give you any more room to display the text.
You could try setting the display rectangle for the text control a little wider than the actual screen, such that the scrollbar gets drawn off-screen. But I HIGHLY RECOMMEND AGAINST THIS AS IT IS QUITE POSSIBLE IT WILL CRASH THE HANDSET.
But if what you're asking for is a good clean way to do this, then the answer is no, there is no simple, clean solution to your problem, aside from transitioning your UI to the BUIT (which is something you're going to want to do eventually anyway, trust me).

You could try a cheap hack, like drawing a grey (or whatever color) rectangle on top of the scroll bar, but that's not going to give you any more room to display the text.
You could try setting the display rectangle for the text control a little wider than the actual screen, such that the scrollbar gets drawn off-screen. But I HIGHLY RECOMMEND AGAINST THIS AS IT IS QUITE POSSIBLE IT WILL CRASH THE HANDSET.
But if what you're asking for is a good clean way to do this, then the answer is no, there is no simple, clean solution to your problem, aside from transitioning your UI to the BUIT (which is something you're going to want to do eventually anyway, trust me).

nparrish wrote:You could try a cheap hack, like drawing a grey (or whatever color) rectangle on top of the scroll bar, but that's not going to give you any more room to display the text.
You could try setting the display rectangle for the text control a little wider than the actual screen, such that the scrollbar gets drawn off-screen. But I HIGHLY RECOMMEND AGAINST THIS AS IT IS QUITE POSSIBLE IT WILL CRASH THE HANDSET.
But if what you're asking for is a good clean way to do this, then the answer is no, there is no simple, clean solution to your problem, aside from transitioning your UI to the BUIT (which is something you're going to want to do eventually anyway, trust me).
When does scrollbar appear? I know if there are multiple lines of text, scrollbar will appear. I want to know what ecaxtly trigger the scrollbar to appear, because for me, it appears sometimes with no pattern whatsoever.
Thank you.

nparrish wrote:You could try a cheap hack, like drawing a grey (or whatever color) rectangle on top of the scroll bar, but that's not going to give you any more room to display the text.
You could try setting the display rectangle for the text control a little wider than the actual screen, such that the scrollbar gets drawn off-screen. But I HIGHLY RECOMMEND AGAINST THIS AS IT IS QUITE POSSIBLE IT WILL CRASH THE HANDSET.
But if what you're asking for is a good clean way to do this, then the answer is no, there is no simple, clean solution to your problem, aside from transitioning your UI to the BUIT (which is something you're going to want to do eventually anyway, trust me).
When does scrollbar appear? I know if there are multiple lines of text, scrollbar will appear. I want to know what ecaxtly trigger the scrollbar to appear, because for me, it appears sometimes with no pattern whatsoever.
Thank you.

The standard implementation of ITextCtl should only draw the scroll bar when the number of text lines exceeds the number of lines that can be displayed within the TextCtl's display rectangle. However, OEMs are free to modify this behavior if they see fit.

The standard implementation of ITextCtl should only draw the scroll bar when the number of text lines exceeds the number of lines that can be displayed within the TextCtl's display rectangle. However, OEMs are free to modify this behavior if they see fit.

nparrish wrote:The standard implementation of ITextCtl should only draw the scroll bar when the number of text lines exceeds the number of lines that can be displayed within the TextCtl's display rectangle. However, OEMs are free to modify this behavior if they see fit.
How do I tell that scrollbar is present for an item, besides visually? How do I detect it code-wise? Is there an API for that?
Thanks.

nparrish wrote:The standard implementation of ITextCtl should only draw the scroll bar when the number of text lines exceeds the number of lines that can be displayed within the TextCtl's display rectangle. However, OEMs are free to modify this behavior if they see fit.
How do I tell that scrollbar is present for an item, besides visually? How do I detect it code-wise? Is there an API for that?
Thanks.