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
marcossit
Posts: 175
Registered: ‎07-19-2012
My Device: Z10 Limited Edition and Dev Alpha C

Hello Helpme ProgressIndicator {} and ImageView {

[ Edited ]

Hi I have this code and I want to assign a ProgressIndicator {} to load the page while opening google.com

 

import bb.cascades 1.0
Page {
id: sixthPage
ScrollView {
scrollViewProperties {
scrollMode: ScrollMode.Both
pinchToZoomEnabled: true
}
WebView {
url: "http://google.com"
onLoadProgressChanged: {
// Update the ProgressBar while loading.
progressIndicator.value = loadProgress / 100.0
}
onLoadingChanged: {
if (loadRequest.status == WebView.LoadStartedStatus) {
// Show the ProgressBar when loading started.
progressIndicator.opacity = 1.0
} else if (loadRequest.status == WebView.LoadSucceededStatus) {
// Hide the ProgressBar when loading is complete.
progressIndicator.opacity = 0.0
} else if (loadRequest.status == WebView.LoadFailedStatus) {
// If loading failed fallback to inline HTML, by setting the HTML property.
html = "<html><head><title>Fallback HTML on Loading Failed</title><style>* { margin: 0px; padding 0px; }body { font-size: 48px; font-family: monospace; border: 1px solid #444; padding: 4px; }</style> </head> <body>Oh ooh, loading of the URL that was set on this WebView failed. Perhaps you are not connected to the Internet?.</body></html>"
progressIndicator.opacity = 0.0
}
}
settings.zoomToFitEnabled: true
settings.webInspectorEnabled: true
}
}
paneProperties: NavigationPaneProperties {
backButton: ActionItem {
title: "Atras"
onTriggered: {
// _navPane is set in code.
navigationPane.pop();
}
}
}
}

 

otra cosa tengo una imagen y quiero que al dar click me envie a una pagina web, no encuentro esa accion en un ImageView {

 

HelpME

 

@Marcossit


Follow me in Twitter:

@Marcossit

BBM Channel:

MarcossitDev: C0002C366  

DeviceSuite For BlackBerry 10:

Link to Download DeviceSuite:

Support was successful? Accept as Solution and click on:


Please use plain text.
Contributor
ejup2009
Posts: 20
Registered: ‎05-18-2010
My Device: BOLD 9900

Re: Hello Helpme ProgressIndicator {} and ImageView {

I need information about that... too.  any information 

Enviado de mi BlackBerry Bold 9900

Ejup2009_Dev
Please use plain text.
Developer
bbquincar
Posts: 304
Registered: ‎08-14-2012
My Device: PlayBook, Z10, Dev C

Re: Hello Helpme ProgressIndicator {} and ImageView {

import bb.cascades 1.0

Page {
    content: Container {
        id: container
        background: Color.LightGray
        layout: StackLayout {
            layoutDirection: LayoutDirection.TopToBottom
        }
        ProgressIndicator {
            id: progressIndicator
            topMargin: 10
            leftMargin: 10
            bottomMargin: 10
            fromValue: 0
            toValue: 100
            preferredWidth: 800
        } // progress of the webview loading
        ScrollView {
            scrollViewProperties {
                scrollMode: ScrollMode.Both
            }
            layoutProperties: StackLayoutProperties {
                spaceQuota: 1.0
            }
            Container {
                background: Color.LightGray
                layout: StackLayout {
                    layoutDirection: LayoutDirection.TopToBottom
                }
            } // container within scrollview
        } // scrollview
    } // main container
}// page

 

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
Please use plain text.
Developer
marcossit
Posts: 175
Registered: ‎07-19-2012
My Device: Z10 Limited Edition and Dev Alpha C

Re: Hello Helpme ProgressIndicator {} and ImageView {

Thanks Bro 

 

 
I have other questions as I can make an image I open a qmlas I do that actionI want to grab an image of paypal and click there to give me send a paypal account mia to donateme money or something.

I await your response.
 
 
 
 
 

Follow me in Twitter:

@Marcossit

BBM Channel:

MarcossitDev: C0002C366  

DeviceSuite For BlackBerry 10:

Link to Download DeviceSuite:

Support was successful? Accept as Solution and click on:


Please use plain text.