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
Regular Contributor
kishorerao
Posts: 60
Registered: ‎06-08-2012
My Device: 8900,9550
My Carrier: tatadocomo

How to disable peekEnabled in one page

In navigationpane i have many pages ,but i want to peekEnabled false

Please use plain text.
Developer
lakshman9687
Posts: 243
Registered: ‎07-22-2011
My Device: BlackBerry Z10
My Carrier: AirTel

Re: How to disable peekEnabled in one page

Hi,

 

Try this below code in that page main container.

 

onTouch: {
                if (event.isDown()) {
                    home_pane.peekEnabled = false;
                } else if (event.isUp()) {
                    home_pane.peekEnabled = true;
                }
            }

 home_pane is ID of main navigation pane.

 

Regards,

Lakshman K

----------------------------------------------------------
Feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.

Please use plain text.
Developer
simon_hain
Posts: 15,929
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: How to disable peekEnabled in one page

good idea.
i use the onTopChanged signal in the navigationPane to change properties like peekEnabled, applicationmenu etc.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.