Created
December 21, 2013 00:07
-
-
Save mauropm/8063601 to your computer and use it in GitHub Desktop.
This app shows a vertical label, just like for a bookmark in a window.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var flip = Ti.UI.create2DMatrix(); | |
flip = flip.rotate(-90); | |
var commonSideTextOne = Ti.UI.createWebView({ | |
html: '<p style="color:#fff;font-size: 10pt; padding-top: 2pt; font-family: futura;">Engine and <br />Drive Train</p>', | |
transform: flip, | |
top: 100, | |
left: 100, | |
width: 180, | |
height: 120, | |
backgroundColor: '#000' | |
}); | |
var button = Ti.UI.createButton({ | |
title:'Click for new window', | |
top: 0, | |
left: 0, | |
}); | |
button.addEventListener('click',function(){ | |
var win2 = Ti.UI.createWindow({ | |
backgroundColor:'white', | |
fullscreen:'true', | |
}); | |
win2.add(commonSideTextOne); | |
win2.open(); | |
win2.addEventListener('close',function(){ | |
win2.remove(commonSideTextOne); | |
win2 = null; | |
}); | |
}); | |
var win = Ti.UI.createWindow({backgroundColor:'white'}); | |
win.add(button); | |
win.open(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment