Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900
My Carrier: All

Is it possible to open a sheet with a customized speed?

Because I open a sheet from a tabbedpane automatically when the tabbedpane is created, but it lost the default pulling animation when the sheet is showing. I want to keep this animation so that I think that I should customize a speed for sheet showing. But I have not found the way to do that.

 

Did someone know how to realize this feature by Cascade?

 

Thank you




p(^_^)q
Good good study, day day up
Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: Is it possible to open a sheet with a customized speed?

[ Edited ]

Hi,

 

Try showing it from a timer:

 

QTimer::singleShot(0, this, SLOT(showSheetFunc());

 

If that won't work try adding a delay but in that case you'll have to block user interaction with tabbedPane somehow until the Sheet is shown.

 

 


Andrey Fidrya, @zmeyc on twitter
Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Is it possible to open a sheet with a customized speed?

How exactly do you do this automation (of opening a sheet from a tabbedpane)?

Developer
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900
My Carrier: All

Re: Is it possible to open a sheet with a customized speed?

My source code is as below:

 

onCreationCompleted: {

    xxxsheet.open();

}

 

 




p(^_^)q
Good good study, day day up
Retired
Posts: 85
Registered: ‎05-25-2012
My Device: Limited Edition Z10
My Carrier: Bell

Re: Is it possible to open a sheet with a customized speed?

I think it would be confusing to the user to see a sheet animation when clicking on a tab.  Implicit animations tied to layout cannot be controlled as these are meant to be universal UX paradigms that are consistent across all apps.

 

Developer
Posts: 71
Registered: ‎09-19-2012
My Device: Z10 very soon
My Carrier: Play

Re: Is it possible to open a sheet with a customized speed?

NO. You can't change the speed of Sheet but you can create own "Sheet". It could be Container with custom TitleBar etc and animate it by changing AbsoluteLayoutProperties using Animations.

 

effort ~1/2 manday