Must be missing something…
I have created a header example in which I attempting to get the label in front of the images. However I cannot use the bringToFront call on it (says no object) I then created a raw canvas which I can call bring to front on however is remains aligned within the horizontal layout. Should I not be using a hlayout?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT>var isomorphicDir="../isomorphic/";</SCRIPT>
<SCRIPT SRC=../isomorphic/system/modules/ISC_Core.js></SCRIPT>
<SCRIPT SRC=../isomorphic/system/modules/ISC_Foundation.js></SCRIPT>
<SCRIPT SRC=../isomorphic/system/modules/ISC_Containers.js></SCRIPT>
<SCRIPT SRC=../isomorphic/system/modules/ISC_Grids.js></SCRIPT>
<SCRIPT SRC=../isomorphic/system/modules/ISC_Forms.js></SCRIPT>
<SCRIPT SRC=../isomorphic/system/modules/ISC_DataBinding.js></SCRIPT>
<SCRIPT SRC=../isomorphic/skins/SmartClient/load_skin.js></SCRIPT>
<link href="renweb.css" rel="stylesheet" type="text/css" />
</head>
<body>
<SCRIPT>
isc.Img.create({
imageType:"tile",
src:"[SKIN]grid.gif",
title:"Img3",
height:70,
ID:"Img3",
width:150,
layoutAlign:"center",
autoDraw:false
})
isc.VLayout.create({
members:[
Img3
],
backgroundColor:"#FFFFFF",
height:70,
ID:"VLayout4",
width:"25%",
autoDraw:false
})
isc.Label.create({
contents:"Name <br> Mascott",
height:20,
ID:"Label0",
styleName:"headertext",
layoutAlign:"center",
autoDraw:false
})
isc.Img.create({
imageType:"tile",
src:"[SKIN]grid.gif",
title:"Img1",
height:70,
ID:"Img1",
width:70,
autoDraw:false
})
isc.LayoutSpacer.create({ID:"LayoutSpacer0", autoDraw:false})
isc.Img.create({
imageType:"tile",
src:"[SKIN]grid.gif",
title:"Img2",
height:70,
ID:"Img2",
width:400,
autoDraw:false
})
isc.Canvas.create({
height:70,
title:"C1",
ID:"C1",
width:80,
backgroundColor: "#CCCCCC",
layoutAlign:"center",
autoDraw:false
})
isc.HLayout.create({
members:[
Label0,
C1,
Img1,
LayoutSpacer0,
Img2
],
backgroundColor:"#800000",
height:70,
ID:"HLayout0",
width:"*",
autoDraw:false
})
Label0.setContents("hello")
C1.bringToFront()
isc.HLayout.create({
members:[
VLayout4,
HLayout0
],
ID:"HLayout2",
autoDraw:false
})
isc.VLayout.create({
members:[
HLayout2
],
height:"100%",
width:"100%",
autoDraw:true
})
</SCRIPT>
</body>
</html>
Here is what I am building…
http://backstage.cyfunmedia.com/clients/renweb/parentsweb/test.jpg
as you can see I cut the front corner of the image so the banner will scale correctly, now need to get the label on top of the image, thought the image might help.
Looking to have the light image with the text sit on top of the back image (as they will be different color combinations)