Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi.
I want to scroll static widget with finger when the text is longer than screen size.
What is the simple & easist way to implement this functionality?

Thanks.

To set scrolling behavior, call IWidget_SetProperty() with the PROP_SCROLLTEXT property.
IWidget_EnableTouch() is used to enable the default touch controllers on widgets. If you want to enable touch on a widget canvas, use this function on the RootContainer. Children added to the widget canvas after touch has been enabled through the root container will automatically enable touch support on themselves. It is possible to send an enable touch call to a widget besides the root container; however, the touch events may not route correctly.

To set scrolling behavior, call IWidget_SetProperty() with the PROP_SCROLLTEXT property.
IWidget_EnableTouch() is used to enable the default touch controllers on widgets. If you want to enable touch on a widget canvas, use this function on the RootContainer. Children added to the widget canvas after touch has been enabled through the root container will automatically enable touch support on themselves. It is possible to send an enable touch call to a widget besides the root container; however, the touch events may not route correctly.

It looks like PROP_SCROLLTEXT is for scrolling of single line of text. Once set, it is animated without user interaction.
If what you want to achieve is display text in multiple lines and scroll them with a flick, you may consider wrapping the static widget in a viewport widget. Static widget itself doesn't handle touch events/gestures, but a viewport widget does.

It looks like PROP_SCROLLTEXT is for scrolling of single line of text. Once set, it is animated without user interaction.
If what you want to achieve is display text in multiple lines and scroll them with a flick, you may consider wrapping the static widget in a viewport widget. Static widget itself doesn't handle touch events/gestures, but a viewport widget does.

Suppose if a container has many child containers and if we want to scroll any single static widget text in a focused container horizontally is it possible by this PROP_SCROLLTEXT property.
Can we use IWidget_SetScrollText to scroll a static widget text horizontally? if so how to do it ? where to call this API ? it will be helpful if any one provides sample code snippet.
 
regards,
Lokesh.

Suppose if a container has many child containers and if we want to scroll any single static widget text in a focused container horizontally is it possible by this PROP_SCROLLTEXT property.
Can we use IWidget_SetScrollText to scroll a static widget text horizontally? if so how to do it ? where to call this API ? it will be helpful if any one provides sample code snippet.
 
regards,
Lokesh.

Do you mean Marqee scrolling? If yes, use IWidget_Animate().

Do you mean Marqee scrolling? If yes, use IWidget_Animate().