!attributes
message={ value="Object attributes" }
text={ value="Xtpanel objects have various attributes
that allow you to change their appearance: color, size,
whether the object is visible, whether it is selectable
by the user, etc. You can use attributes in the script
(e.g., background=red) to specify how the object should look
at startup time, or you can use the SET action to change
the object's appearance later.
   Below is the hello world button. Press the button labeled
attributes to bring up a panel that will let you change many
attributes of the hello world button.
   This list of attributes is by no means complete. See
the manual page for a complete list of available object
attributes."
}
button={ name=atarg label="hello world" action="PRINT $val" }
button={ label="attributes" action="SET attr visible true" }
!attributes (a popup)
window={ name=attr visible=false
  message={ value="Object attributes" }
  button={ label=Dismiss action="SET attr visible false" }
  hbox={ borderWidth=0
	message={ value="sensitive" }
	button={ label="true" action="SET atarg sensitive true" }
	button={ label="false" action="SET atarg sensitive false" }
  }
  hbox={ borderWidth=0
	message={ value="visible" }
	button={ label="true" action="SET atarg visible true" }
	button={ label="false" action="SET atarg visible false" }
  }
  hbox={ borderWidth=0
	message={ value="height" }
	field={ name=atheight value="" }
	button={ label="apply" action="SET atarg height $atheight" }
  }
  hbox={ borderWidth=0
	message={ value="width" }
	field={ name=atwidth value="" }
	button={ label="apply" action="SET atarg width $atwidth" }
  }
  hbox={ borderWidth=0
	message={ value="background color" }
	field={ name=atbackground value="" }
	button={ label="apply" action="SET atarg background $atbackground" }
  }
  hbox={ borderWidth=0
	message={ value="foreground color" }
	field={ name=atforeground value="" }
	button={ label="apply" action="SET atarg foreground $atforeground" }
  }
  hbox={ borderWidth=0
	message={ value="border color" }
	field={ name=atborderColor value="" }
	button={ label="apply" action="SET atarg borderColor $atborderColor" }
  }
}
