Component Writer's Guide :: Control styles
From RadPHP XE2 Documentation
ControlStyles is a way the IDE uses to know more about your component and specifically, how to handle it, here is a list of valid ones for 1.0 release:
- csAcceptsControls=boolean Indicates the control can contain controls inside
- csImageContent=boolean Indicates the component produces binary information
- csSlowRedraw=boolean Indicates the IDE this component includes javascript or any other feature that takes time to redraw
- csRenderOwner=boolean Indicates the IDE to render the owner of the component when redrawing the component on the designer
- csRenderAlso=classname,classname Indicates the IDE to render this component and also the components which classnames are on the comma separated list
- csDesignEncoding=string Indicates the encoding to use when rendering the component
- csTopOffset=integer Indicates the IDE a displacement when getting the image of it
- csLeftOffset=integer Indicates the IDE a displacement when getting the image of it
A sample on how to use it, for example, to request to render also all SpeedButtons found on the form, so they are available:
function __construct($aowner=null) { //Calls inherited constructor parent::__construct($aowner); $this->ControlStyle = "csRenderAlso=SpeedButton"; }