|
Tutorial Example
Introduction
1. Specify ButtonBarBuilderSimply place
<panel> <buttonbarbuilder> </buttonbarbuilder> </panel> 2. Add ButtonsThere are four kinds of buttons. Place buttons inside
<form-add gridded="true"> <button text="Help"/> </form-add> 2. Deal with GapsThere are two types of gaps. Related or Unrelated. Unrelated gaps are wider than related. There are two ways of specifying the gaps between buttons. 1. Add buttons as a group, and set the related flag in <form-add gridded="true" related="true"> <button text="Okay"/> <button text="Cancel"/> <button text="Apply"/> </form-add> 2. Manually insert the gap using <form-gap related="false"/> 3. Struts and GluesA strut is a fixed width gap between components. Use
<form-strut size="DLUX14"/> Glue is used to consume extra spaces when the panel grows beyond the preferred
size. Use <form-glue/> Glue can be used to force the alignment of the buttons, such as left, right, and center alignments. Left aligned button: <panel> <buttonbarbuilder> <form-add gridded="true"> <button text="Help"/> </form-add> <form-glue/> </buttonbarbuilder> </panel> Center aligned button: <panel> <buttonbarbuilder> <form-glue/> <form-add gridded="true"> <button text="Help"/> </form-add> <form-glue/> </buttonbarbuilder> </panel> |