Beruflich Dokumente
Kultur Dokumente
createWindow({
left:150,
title:'Multemedia-Calculator',
backgroundColor:'#3F8EBF',
});
title:'Result:-',
backgroundColor:'#C0BFCE'
});
/*var label1 = Titanium.UI.createLabel({
color:'#999',
text:'I am Window 1',
font:{fontSize:20,fontFamily:'Helvetica Neue'},
textAlign:'center',
width:'auto'
});
win1.add(label1);
alert("Hi");
//label1.text='welocome to android world':
});
//win1.open();
*/
});
win1.add(textBox);
});
win1.add(textBox1);
var textBox2 = Ti.UI.createTextField({
top : 100,
left : 0,
width : 100,
height : 150,
color: '#336699',
});
});
win1.add(button1);
});
win1.add(button2);
win1.add(button3);
});
win1.add(button4);
win1.open();
// alert(parseInt(textBox.value)+parseInt(textBox1.value));
win2.open();
label2.visible='true'
var sum=parseInt(textBox.value)+parseInt(textBox1.value);
var msg1="Your addition is:-";
label2.text=msg1+String(sum);
win2.add(label2);
});
button2.addEventListener('click', function (e) {
//alert(parseInt(textBox.value)-parseInt(textBox1.value));
win2.open();
label2.visible='true'
var sum=parseInt(textBox.value)-parseInt(textBox1.value);
var msg1="Your Subtraction is:-";
label2.text=msg1+String(sum);
win2.add(label2);
});
button3.addEventListener('click', function (e) {
//alert(parseInt(textBox.value)*parseInt(textBox1.value));
win2.open();
label2.visible='true'
var sum=parseInt(textBox.value)*parseInt(textBox1.value);
var msg1="Your Multiplication is:-";
label2.text=msg1+String(sum);
win2.add(label2);
});
button4.addEventListener('click', function (e) {
//alert(parseInt(textBox.value)/parseInt(textBox1.value));
win2.open();
label2.visible='true'
var sum=parseInt(textBox.value)/parseInt(textBox1.value);
var msg1="Your Division is:-";
label2.text=msg1+String(sum);
win2.add(label2);
});
bottom:0,
width:100,
height:100,
image : './images/DSC_0062.png'
});
win1.add(image1);*/
if (Ti.UI.Android){
win.windowSoftInputMode = Ti.UI.Android.SOFT_INPUT_ADJUST_PAN;
}
function createRow(i) {
var row = Ti.UI.createView({
backgroundColor: 'white',
borderColor: '#bbb',
borderWidth: 1,
width:'100%', height: 70,
top: 0, left: 0
});
var scrollView = Ti.UI.createScrollView({
bottom:120,
layout: 'vertical'
});
win1.open();