Thank you very much.
I still have a question on #5 -- I know how to make a button, as you indicated:
(new linb.UI.Button)
.setHost(host,"ctl_button5")
.setLeft(70)
.setTop(150)
.setCaption("ctl_button5")
.setType("status")
... but not how to make it a
toggle button. Looking online, I see techniques such as
<html>
<head>
<style type="text/css">
.on {
border:1px outset;
color:#369;
background:#efefef;
}
.off {
border:1px outset;
color:#369;
background:#f9d543;
}
</style>
<script language="javascript">
function togglestyle(el){
if(el.className == "on") {
el.className="off";
} else {
el.className="on";
}
}
</script>
</head>
<body>
<input type="button" id="btn" value="button" class="off" onclick="togglestyle(this)" />
</body>
</html>
and other similar techniques at
http://stackoverflow.com/questions/309081/how-do-you-create-a-toggle-button, etc.
My question is whether LINB has a more concise way to achieve the same effect, possibly as a
setCustomStyle() call, or as something like
(new linb.UI.Button)
.setToggleStyle(true)or
(new linb.UI.CheckBox)
.setPushputtonStyle(true) // Make it look like a push button
or
(new linb.UI.RadioBox)
.setPushputtonStyle(true) // Make it look like a push button
Thanks,
Bruce