Default Styling
Your control will likely need some default CSS to function correctly. The StyleObject virtual method is called by the constructor to apply these.
- TQTXCustomListbox, for example, uses it to set Style.overflowY := "scroll".
- TQTXContentBox uses it to set its display and align-items properties.
The GetInitialCSSClassName method tells the widget which default CSS class to add to the element. By default, this returns the widget's Pascal class name (e.g., "TMyWidget").
Normally you wont touch this as you want your CSS style to match your classname, but if you want your widget to use a specific style by force - you can override this method.