====== Shape and Corner Radii ====== Some of the controls in the jControls NF4 library, e.g. jButton, jLamp, and more, have a [[https://api.comfiletech.com/csharp/api/ComfileTech.jControlsNF4.Shape.html|Shape]] and [[https://api.comfiletech.com/csharp/api/ComfileTech.jControlsNF4.CornerRadii.html|CornerRadii]] property, providing one the ability to control the overall shape of the control. ===== Shape Property ===== The [[https://api.comfiletech.com/csharp/api/ComfileTech.jControlsNF4.jButton.Shape.html#ComfileTech_jControlsNF4_jButton_Shape|Shape]] property can be used to give a control either a rectangular or round shape. Although the same could technically be accomplished with the ''CornerRadii'' property, using the ''Shape'' property ensures the shape is retained even when the control is resized. {{ :jcontrols_nf4:jbutton:jbutton_shape.mp4?546x258 }} ===== CornerRadii Property ===== When the control's Shape property is ''Rectangular'', the [[https://api.comfiletech.com/csharp/api/ComfileTech.jControlsNF4.jButton.CornerRadii.html#ComfileTech_jControlsNF4_jButton_CornerRadii|CornerRadii]] property can be used to independently add a radius of curvature to each corner. This can be used to give the control a rounded rectangle shape, or even used to make it appear like a tab. {{ :jcontrols_nf4:jbutton:jbutton_cornerradii.mp4?482x144 }}