Hi

>> is there any way to create on/off button with XUL? (after clicking, staying
>> clicked until another click)

<button type="checkbox" /> is all you need
http://www.xulplanet.com/references/elemref/ref_button.html#attr_type

behaves like a checkbox but looks like a button.

in fact, it looks so much like a button you can't
see it's checked (in ff/mac), so you need to add
some css to make it usefull :-)

working example
http://formwidgets.mozdev.org/current/Documentation/elements/button/button-formwidget-1.xul
(you don't need formwidgets though)

$2c,
*pike

_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to