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

Developer

Forums

Forums:

Hi
I am writing application in BMP using forms and widgets. I have a propcontainer form in which i have couple of text boxes , static widgets and some images and all of them are touch enabled.

I wanted to have flick kind of effect in this screen but i am not sure how to achieve it. I have a viewport and scrollbar attached with this propcontainer and its working fine. I saw brew documentation and it seems listwidget supports this feature and its working for us. Listwidget is having ListwidgetTC which takes care of this and in fact as per brew documentation we have flick support for viewportTC provided its child widget should not be touch enabled.

Now problem is i want all child widget to handle touch events but at same point of time i want to support flick kind of vertical scrolling for my propcontainer. This is very common use case and i am sure all the developers will face if they are writing touch enabled application in a brew.

Please guide us how to achieve flick kind of scrolling effect for propcontainer/xycontainer when it has multiple widgets which require user response.

Any comment will be highly appreciated.

I hope BREW Mobile platform team would through some light on this.

Regards

Can we have somebody from BMP support team to comment on this thread?

Can we have somebody from BMP support team to comment on this thread?

Hi,
Viewport flick is supported in supported in BMP. In order for flick to work on viewport widget:
1. Add flag CONSUMETOUCHEVENTS (using IWidget_AddFlags) to the viewport widget.
2. Set AEEWIDGET_TOUCH_MODE_CHILD(using IWidget_SetTouchMode) on PropContainer.
3. Application should also ensure that touch is enabled on the root container.
Thanks,
Karina

Hi,
Viewport flick is supported in supported in BMP. In order for flick to work on viewport widget:
1. Add flag CONSUMETOUCHEVENTS (using IWidget_AddFlags) to the viewport widget.
2. Set AEEWIDGET_TOUCH_MODE_CHILD(using IWidget_SetTouchMode) on PropContainer.
3. Application should also ensure that touch is enabled on the root container.
Thanks,
Karina

Hi Karina,
Thanks for reply i changed my code as per your instruction and viewport is moving on flick but i am seeing one issue.
First time (i.e there is no view port has not moved even a single pixel) when we try to flick nothing happens and touch event goes to child widget of the prop container but when we scroll it by down key scroll port moves.
Now if we keep on moving viewport with down key then after moving viewport heigh flick starts working. After this i can see very smooth scrolling but real problem is first time nothing happens, you have to scroll down with down key.
To understand this lets have a container of height 500 and viewport height is 240 , now first time when we try to flick it does not respond but when we move view port to 240 pixel by AVK_DOWN button then flick starts working.
Not sure what could be the problem.
Your comments will be highly appreciated.
Regards
Anand

Hi Karina,
Thanks for reply i changed my code as per your instruction and viewport is moving on flick but i am seeing one issue.
First time (i.e there is no view port has not moved even a single pixel) when we try to flick nothing happens and touch event goes to child widget of the prop container but when we scroll it by down key scroll port moves.
Now if we keep on moving viewport with down key then after moving viewport heigh flick starts working. After this i can see very smooth scrolling but real problem is first time nothing happens, you have to scroll down with down key.
To understand this lets have a container of height 500 and viewport height is 240 , now first time when we try to flick it does not respond but when we move view port to 240 pixel by AVK_DOWN button then flick starts working.
Not sure what could be the problem.
Your comments will be highly appreciated.
Regards
Anand

Expecting support from QC BMP support team. This is blocking our development and need your help in order to resolve this issue.

Expecting support from QC BMP support team. This is blocking our development and need your help in order to resolve this issue.

Waiting for reply from Qualcomm BMP team :(

Waiting for reply from Qualcomm BMP team :(

Hi All,
I am facing same problem as Anand explained. Have any body solved it ? kindly reply soon.

Hi All,
I am facing same problem as Anand explained. Have any body solved it ? kindly reply soon.

Hi, 
 
I have the same problem explained above. BMP team , please respond :S

Hi, 
 
I have the same problem explained above. BMP team , please respond :S

Use listwidget it supports this feature and its working for us.

Use listwidget it supports this feature and its working for us.