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
Posts: 55
Registered: ‎05-30-2011
My Device: blackberry torch 9800
My Carrier: Airtel

How to create text box and buttons.....

Hello

 

I want to create login page but i don't know how to create text box and buttons.

 

Please reply me how can i do that.

 

thanx

Highlighted
Developer
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip
Developer
Posts: 162
Registered: ‎01-11-2012
My Device: BlackBerry 9790, BlackBerry PlayBook 64Gb, BlackBerry 10 Dev Alpha
My Carrier: MTS

Re: How to create text box and buttons.....

Hi janaknayangaljanak,

The simplest way to do that you want is use Qt, QML or Cascades. Keep in mind that Cascades framework is available for BlackBerry 10 only.
Respectfully,
Oleg

Developer, QNX RTOS, BlackBerry 10 and PlayBook
Follow me on Twitter (in Russian)
St.Petersburg BlackBerry Dev. Group
Regular Contributor
Posts: 55
Registered: ‎05-30-2011
My Device: blackberry torch 9800
My Carrier: Airtel

Re: How to create text box and buttons.....

Thanx to reply

 

Now i am able to create buttons but still unable to create text box.please tell me how can i create text box.

Regular Contributor
Posts: 55
Registered: ‎05-30-2011
My Device: blackberry torch 9800
My Carrier: Airtel

Re: How to create text box and buttons.....

[ Edited ]

Hello

 

How can i get the input from users.

 

or how can i create text field or edit field ? 

 

please reply its urgent.

Retired
Posts: 329
Registered: ‎05-07-2012
My Device: BB Alpha
My Carrier: N/A

Re: How to create text box and buttons.....

Hi there,

 

From what you are asking, everything you need can be found in the cookbook sample located here:

https://developer.blackberry.com/cascades/sampleapps/

 

The cookbook application shows you how all basic UI components are created in BB10.

 

1) download the cookbook example (I would recommend the QML version for simplicity)

2) extract it in a folder

3) from Momentics, Import > General > Existing Projects into Workspace

4) select your directory where you extracted the cookbook

5) explore the various pages in the sample application

 

This sample will give you some context; you can drag & drop buttons and textfields directly form Momentics using the "Components" pane for a new project as well.

 

Good luck!

 

Martin

 

Regular Contributor
Posts: 55
Registered: ‎05-30-2011
My Device: blackberry torch 9800
My Carrier: Airtel

Re: How to create text box and buttons.....

Thanx to reply

 

But I'm developing playbook application in native sdk not in BB10.

Retired
Posts: 329
Registered: ‎05-07-2012
My Device: BB Alpha
My Carrier: N/A

Re: How to create text box and buttons.....

Have you taken a look at the native samples for NDK 2? There are examples on dialogs, text rendering, etc...

 

https://developer.blackberry.com/native/sampleapps/

 

Martin

 

Developer
Posts: 1,635
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Re: How to create text box and buttons.....

would be very hopeful for NDK beginners if RIM would release more sample apps.  It is very difficult to find anything without good examples.

Regular Contributor
Posts: 55
Registered: ‎05-30-2011
My Device: blackberry torch 9800
My Carrier: Airtel

Re: How to create text box and buttons.....

not resolved yet..........

 

Smiley Sad