![]() See the Additional Controls category in the Embarcadero VCL documentation. Select the Methods link on a component reference page to see the full information on the available methods (procedures, functions etc) for that component object.Ī menu bar and its accompanying drop-down menus.Ī pop-up (context) menu that appears when a user right clicks.Ī non-windowed control that displays text on a form.Ī single-line edit control, used to retrieve text that a user types.Ī check box object that can be on (checked) or off (unchecked).Ī collection of items displayed in a scrollable list.Īn edit box combined with a scrollable list.Ī scroll bar used to scroll the contents of an object.Ī group of radio buttons that function together.Ī list of actions that can be used by components and controls. See the Standard Controls category in the Embarcadero VCL documentation. To find the Methods and further information on the various category tabs in the scripting Tools Palette, the refer to the following sections. Use the Code Completion ( Ctrl+Space) feature to search for a valid component Method or Property. Use Ctrl+Space to manually instigate the Code Completion window. For example, by typing TButton.hi the Code Completion window will show both the Hide procedure and Hint property for the TButton component object. To find a particular Method (or Property) for a Tool Palette component, use the Code Completion feature (see Script Editor Tools). In the case of the TButton control for example, select the Standard category, the TButton page and then the Events or Properties view. Select the Events or Properties link on the appropriate component reference page in the Embarcadero documentation.Select a component on the Form and activate the Events or Properties tab in the Object Inspector panel.To see a list of Events and Properties for a component: The two specialized categories (tabs) in the Tools Palette, Altium Standard and Instrument Controls, are derived from standard Delphi-type components but not specifically included in the Embarcadero reference documentation. Msg.The Scripting system's visual form controls, based on Embarcadero's Visual Component Library (VCL), are represented by a wide range of conventional Delphi-type component objects and two specialized Altium component categories - the Altium Standard and Instrument Controls groups.įor full details on the methods, properties and events for the majority of components, refer to the component categories in the Embarcadero VCL documentation. If not (ThemeServices.ThemesEnabled or DoubleBuffered) then begin Procedure TMyRadioButton.CnCtlColorStatic(var Msg: TWMCtlColorStatic) ![]() ![]() R := Rect(Left, Top, Left + Width, Height + Top) If not (ThemeServices.ThemesEnabled or DoubleBuffered) Procedure TMyRadioButton.WmEraseBkgnd(var Msg: TWMEraseBkgnd) If not (ThemeServices.ThemesEnabled or DoubleBuffered) then ![]() Procedure TMyRadioButton.WmPaint(var Msg: TWMNCPaint) Params.ExStyle := Params.ExStyle or WS_EX_TRANSPARENT Procedure TMyRadioButton.CreateParams(var Params: TCreateParams) Procedure CreateParams(var Params: TCreateParams) override Procedure WmPaint(var Msg: TWMNCPaint) message WM_PAINT Procedure WmEraseBkgnd(var Msg: TWMEraseBkgnd) message WM_ERASEBKGND Procedure CnCtlColorStatic(var Msg: TWMCtlColorStatic) message CN_CTLCOLORSTATIC A problem not easily noticable can (sometimes) be duplicated by bringing a different window in front of the form containing the controls, and then slowly moving it aside, sometimes this leaves some artifacts. Problems easily noticable are, as you would guess from the code, it's a bit flickery and it is not transparent when DoubleBuffered. The below is the same code applied to the RadioButton. I, once, had tried to make the CheckBox transparent for when runtime themes are not enabled in project options, or a classic theme is selected with the OS the result was not perfect. I agree with Andreas and Serg in that the control is transparent when themes are enabled.
0 Comments
Leave a Reply. |