Buttons and pressed state

when i click button, how to make a button in pressed state? thanks.

ok , i found next

{ view:“toggle”, type:“imageButtonTop”, label:“Save”, image:path2+“save.gif”, height:74 },

but i want { view:“toggle”, value:“Sometext”} than i click i see true, false.

    { view:"toggle",  label:"Save",		 height:74 }, this fine, sorry for spam