PCB Logo Creator. How to import a graphic onto the PCB overlay PCB Logo Creator Script The Altium Designer Scripting Examples folder, available for download from here, contains an. Please feel free to browse our gallery and blog to get a sense of what we do and then visit our order page for our unique approach to ordering flowers.
![Script logo creator Script logo creator](http://320volt.com/wp-content/uploads/2014/08/altium-designer-pcb-uzerine-logo-ekleme.png)
See for an overview of the VCL architecture and components.When creating a Form in the Altium Designer Script Editor, the components are accessed from the Tool Palette panel. Script Forms have an associated.DFM file that includes details of the form's configuration, its component locations and other attributes. Altium Designer allows the components to be used by either DelphiScript, VBScript or JScript when designing Script Forms.The Tool Palette Panel contains categorized visual controls that can be dropped onto a script Form.The Tool Palette panel (accessed from the Script button on the bottom of the Altium Designer status bar) contains categorized selections of components that can be placed on a Script Form. The components are assembled under the Tool Palette panel's tabs: the Standard, Additional, Win32, System, Dialogs, Altium Standard and Instrument Controls tabs. The panel's appearance, such as its layout and icon size, can be changed from its right-click context menu.The components (or 'controls') available in the Palette are visual components when used on a script form, meaning that a user can see a contol and possibly interact with it at runtime. All controls have properties, methods, and events that describe aspects of their appearance, such as the position property of the control, methods to paint or move the control, and events that respond to user actions.The properties and events are available in the Object Inspector panel for the currently focused component, including the form itself.
The methods are procedures and functions supported by that component.Script Forms Overview Script FormsA Script Form is the primary user interface in scripts, although there are other forms such as dialog boxes, secondary windows and so on. To create a new Script Form, with a project open in Altium Designer, select File » New » Script Files and choose a Script Form item in the applicable scripting language.A new Script Form appears with the EditScript name as the default name, which can be changed through the Name property in the Object Inspector panel. Script form names should be unique in a project.When designing a script Form, open the Object Inspector Panel from the Script button in the lower status bar.A blank form is basically a visual window that controls can be added to.
![Logo Logo](http://techdocs.altium.com/sites/default/files/wiki_attachments/231933/LayerStackManagerDlg.png)
A dialog and a panel are different types of forms, and by default, a form includes standard window functionality such as:. Control menu. Minimize and Maximize buttons.
Title bar. Resizable bordersThese features, along with any other available form property, can be changed at design time using the Object Inspector panel. Since a Script Form is a VCL component it has the three following items:.
Properties - The characteristics of an object that influence its visible behavior or operations. For example, the Visible property determines whether an object can be seen on a script form. Events - Actions or occurrences detected by the script. A script must include code for each Event handler, which is designed to capture a specific event such as a mouse click. Methods - Procedures that are is associated with objects (in this case component objects) and define their behavior. Note that the above link refers to the Embarcadero RAD Studio XE6 reference for the VCL Library. Documentation for previous releases (down to the 2010 version) is also available.
TForm PropertiesThe available Properties for the TForm component object, the base script form, can be viewed in the following ways:. Via the Object Inspector Panel - In the editor's Form view ( Form tab selected), click in the body of the form itself and select the Object Inspector's Properties tab.Note that only visual component objects will appear in the panel. Non-visual objects, that act as behind the scenes controls, are not displayed on the form. By using the Code Completion Feature - In the editor's Code view ( Code tab selected), the context-sensitive Code Completion window will display all code options for an object name.For the Form object, type TForm. (note the period) to activate the window. Narrow the search by typing the first few letters of a desired property — note that both properties and methods are shown.
From the Embarcadero reference documentation - Selected the Properties link on the. Note that this shows all inherited Properties, however the option can be deselected.TForm MethodsThe available Methods for the TForm component object can be viewed in the following ways:. Use the Code Completion Feature - In the editor's Code view, type a component name followed by a period. The Code Completion window will open to display the code methods (and properties) for an object name. Note that the above link refers to the Embarcadero RAD Studio XE6 reference for the VCL Library. Documentation for previous releases (down to the 2010 version) is also available.
Component PropertiesTo see a list of Properties for a component:. Select a component on the Form and activate the Properties tab in the Object Inspector panel — as shown above for the TForm component object. Select the Properties link on the appropriate component reference page in the. In the case of the TButton control for example, select the category, the page and then the view.Component EventsTo see a list of Events that a component can react on:.
Select a component on the Form and activate the Events tab in the Object Inspector panel — as shown above for the TForm component object. Select the Events link on the appropriate component reference page in the. Note that this is useful as a guide to available events for a component and may not fully match the events available for the Altium Designer scripting components. Refer to the documentation for information on the available Methods for a Tool Palette component.This includes references for the following control object categories. Standard. Additional.
Win32. System. Dialog. Altium Standard.
Instrument ControlsIn the most part, these categories collect together types of visual form controls based on standard Delphi-type VCL components. The Altium Standard and Instrument Controls categories are the exception, and offer components that are exclusive to Altium Designer's scripting system. Tool Palette.Working with Forms and Components Customizing Script Forms. To make a form stay on top of other open panels for example, set the FormStyle property to fsStayOnTop. To define the default behavior of a form, set the FormKind to one of the following values; fkNone, fkNormal, fkServerPanel or fkModal. If fkModal is closed, then the form will be a modal form.
That is, a form waiting for user input before proceeding with actions such as closing the form. If fkServerPanel then the form will be shown as a Server panel.
If fkNormal then the form acts as a normal non-modal form. To remove a form's default scroll bars, change the value of the HorzScrollBar and VertScrollBar properties. To make the form a MDI (Multiple Document Interface) frame or child, use the FormStyle property. To change a form's border style, use the BorderIcons and BorderStyle properties. (The results are visible at runtime.).
To change the icon for the minimized form, use the Icon property. To specify the initial position of a form in the application window, use the Position property.
To specify the initial state of a form, (for example; minimized, maximized or normal) use the WindowState property. To define the working area of a form at runtime, use the ClientHeight and ClientWidth properties.