Hyperlink / URL as part of display.newText ?

Hi - is it possible to make some of the text that appears in a “display.newText” act and look like a hyperlink?

I have a ‘Links’ page in my app, and want to list a website, Twitter page etc. - and ideally this would be clickable, as opposed to just pure text.

It sounds simple, but searching Corona for URL, website and hyperlink brings back too many generic references - hence the need for this post. Please help!

Regards,
Dave. [import]uid: 82595 topic_id: 36220 reply_id: 336220[/import]

You have two choices:

  1. Use a native.newWebView()

or 2. Break your text up into parts and then for the part you want to be a link, add a touch handler that calls system.openURL() to the link you want to go to.

[import]uid: 199310 topic_id: 36220 reply_id: 143912[/import]

Thanks Rob - I opted for option 2 :slight_smile: [import]uid: 82595 topic_id: 36220 reply_id: 143970[/import]

You have two choices:

  1. Use a native.newWebView()

or 2. Break your text up into parts and then for the part you want to be a link, add a touch handler that calls system.openURL() to the link you want to go to.

[import]uid: 199310 topic_id: 36220 reply_id: 143912[/import]

Thanks Rob - I opted for option 2 :slight_smile: [import]uid: 82595 topic_id: 36220 reply_id: 143970[/import]

You have two choices:

  1. Use a native.newWebView()

or 2. Break your text up into parts and then for the part you want to be a link, add a touch handler that calls system.openURL() to the link you want to go to.

[import]uid: 199310 topic_id: 36220 reply_id: 143912[/import]

Thanks Rob - I opted for option 2 :slight_smile: [import]uid: 82595 topic_id: 36220 reply_id: 143970[/import]

You have two choices:

  1. Use a native.newWebView()

or 2. Break your text up into parts and then for the part you want to be a link, add a touch handler that calls system.openURL() to the link you want to go to.

[import]uid: 199310 topic_id: 36220 reply_id: 143912[/import]

Thanks Rob - I opted for option 2 :slight_smile: [import]uid: 82595 topic_id: 36220 reply_id: 143970[/import]