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
Highlighted
Developer
Posts: 304
Registered: ‎08-14-2012
My Device: PlayBook, Z10, Dev C
My Carrier: Rogers
Accepted Solution

Hyper link in qml

Can I enable or hyper link a website or email address or twitter link in my app on the about page. Im using cascades qml.

 

BlackBerry 10 game reviews for the unknown, small and indie developers. Little games with big dreams. VeryBerryGames.com | Follow @VeryBerryGames | TwoCasualCoders.com | never casual on quality
Developer
Posts: 262
Registered: ‎07-13-2012
My Device: PlayBook, DA B, DA C, LE Z10 #102, Q10, Z30
My Carrier: T-Mobile

Re: Hyper link in qml

[ Edited ]

Change inputMode: to either TextAreaInputMode.Text or TextAreaInputMode.Chat (by default it is TextAreaInputMode.Default).  Such as:

 

...

TextArea {
            text: "Default Mode: www.google.com words words words 
                            813-555-5555"
            inputMode: TextAreaInputMode.Default
            editable: false
            textStyle.fontSizeValue: 10.0
        }
        TextArea {
            text: "Text Mode: www.google.com words words words 
                            813-555-5555"
            inputMode: TextAreaInputMode.Text
            editable: false
            textStyle.fontSizeValue: 10.0
        }
                TextArea {
                    text: "Chat Mode: www.google.com words words words 
                                    813-555-5555"
                    inputMode: TextAreaInputMode.Chat
                    editable: false
                    textStyle.fontSizeValue: 10.0
                }

...

 Will result in the following (ignore the hello world label):

 

inputmode.png

 

-Brian

---
Check out my BB10 Cascades Coding site: BBcascades.com & Cascades Blog: bbcascadescode.tumblr.com

My Built for BlackBerry app: The Dive Plan
Developer
Posts: 262
Registered: ‎07-13-2012
My Device: PlayBook, DA B, DA C, LE Z10 #102, Q10, Z30
My Carrier: T-Mobile

Re: Hyper link in qml

Works for email addresses too, but doesn't like Twitter handles.  That might be a bug?

---
Check out my BB10 Cascades Coding site: BBcascades.com & Cascades Blog: bbcascadescode.tumblr.com

My Built for BlackBerry app: The Dive Plan
Developer
Posts: 304
Registered: ‎08-14-2012
My Device: PlayBook, Z10, Dev C
My Carrier: Rogers

Re: Hyper link in qml

works perfect thanks

BlackBerry 10 game reviews for the unknown, small and indie developers. Little games with big dreams. VeryBerryGames.com | Follow @VeryBerryGames | TwoCasualCoders.com | never casual on quality
Developer
Posts: 304
Registered: ‎08-14-2012
My Device: PlayBook, Z10, Dev C
My Carrier: Rogers

Re: Hyper link in qml

i was adding the code last night and it worked great until i tired with an email

 

I looked up the codes and found the below code didnt work

TextArea {
                    text: "Chat Mode: bbquincar@gmail words words words 
                                    813-555-5555"
                    inputMode: TextAreaInputMode.EmailAddress
                    editable: false
                    textStyle.fontSizeValue: 10.0

}

so i tried using crtl+spacebar and found only there options able to be used will the other be added are is their another way to do it.

BlackBerry 10 game reviews for the unknown, small and indie developers. Little games with big dreams. VeryBerryGames.com | Follow @VeryBerryGames | TwoCasualCoders.com | never casual on quality
Developer
Posts: 262
Registered: ‎07-13-2012
My Device: PlayBook, DA B, DA C, LE Z10 #102, Q10, Z30
My Carrier: T-Mobile

Re: Hyper link in qml

 

 

inputMode: TextAreaInputMode.EmailAddress

 

This is not a valid inputMode. Only Default, Text, and Chat. Email addresses will appear as links in Text and Chat but not Default.

 

 

---
Check out my BB10 Cascades Coding site: BBcascades.com & Cascades Blog: bbcascadescode.tumblr.com

My Built for BlackBerry app: The Dive Plan
Developer
Posts: 304
Registered: ‎08-14-2012
My Device: PlayBook, Z10, Dev C
My Carrier: Rogers

Re: Hyper link in qml

Ok so it doesnt go any where becasue we dont have the BlackBerry hub yet. Will we be able to auto populate the email from system info.

BlackBerry 10 game reviews for the unknown, small and indie developers. Little games with big dreams. VeryBerryGames.com | Follow @VeryBerryGames | TwoCasualCoders.com | never casual on quality