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
New Developer
bDev
Posts: 40
Registered: ‎12-14-2013
My Device: Playbook
My Carrier: Orange
Accepted Solution

displaying text in tilt mode

Hi everyone, i'm testing tilt mode and wanted to display some text when the device is put with its display facing down.

 

how do i write text in the inverted form so that it displays correctly on the glass, specially when displaying some values. 

 

the actual info should be in inverted form so that when displayed on glass be seen in correct form. any idea how to do this, thanks.

Please use plain text.
Developer
BBSJdev
Posts: 6,090
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: displaying text in tilt mode

Do you mean mirrored rather than inverted?

As obviously you can use the rotationZ property to invert...

 

http://developer.blackberry.com/native/reference/cascades/bb__cascades__visualnode.html#property-rot...

 

 


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
New Developer
bDev
Posts: 40
Registered: ‎12-14-2013
My Device: Playbook
My Carrier: Orange

Re: displaying text in tilt mode

@BBSJdev thanks, I'll check out the link, probably this is what i was looking for.
Please use plain text.
Developer
BBSJdev
Posts: 6,090
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: displaying text in tilt mode

[ Edited ]

Just in case you are looking to mirror the text or someone comes along later wishing to do so, this is undocumented but it's possible using the scaleX property...

 

        Label {
            text: "Mirrored"
        }

        Label {
            text: "Mirrored"
            rotationZ: -180.0
            scaleX: -1.0
        }

        Label {
            text: "Reflect me!"
            scaleX: -1.0
        }

 IMG_20140207_233138.png

 

 


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
New Developer
bDev
Posts: 40
Registered: ‎12-14-2013
My Device: Playbook
My Carrier: Orange

Re: displaying text in tilt mode

Exactly this is what i was looking for. thanks
Please use plain text.