====== Shape and Corner Radii ====== Some of the controls in the jControls library, e.g. jButton, jLamp, and more, have a [[https://api.comfiletech.com/csharp/api/ComfileTech.jControls.Shape.html|Shape]] and [[https://api.comfiletech.com/csharp/api/ComfileTech.jControls.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_jControls_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. {{ https://downloads.comfiletech.com/jControls/videos/jbutton_shape.mp4?546x258 }} ===== CornerRadii Property ===== When the control's Shape property is ''Rectangular'', the [[https://api.comfiletech.com/csharp/api/ComfileTech.jControls.jButton.CornerRadii.html#ComfileTech_jControls_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. {{ https://downloads.comfiletech.com/jControls/videos/jbutton_cornerradii.mp4?482x144 }}