Delphi Common attribute Description (extra long)

Source: Internet
Author: User

Common Events for Delphi components
onclick--the code in this event is triggered when clicked
onchange--the code that is triggered when the component content is changed
oncreate--the code in this event is triggered when it is created
onclose--triggers the code when it is closed
onkeydown--triggers the code when the key on the keyboard is pressed
onkeyup--triggers the code when the key on the keyboard is released
onkeypress--trigger the code when a keyboard action is in place
onmouseup--trigger code when you release the mouse
onmousedown--triggers the code when the mouse is pressed
onmousemove--The code is triggered when the mouse is moved
onhide--code is triggered when hidden
Trigger code when onshow--appears
onenter--trigger the code when you enter
onexit--trigger code when exiting


Delphi Common Properties Description:
ALIGN set the alignment of components (with their parent container)
BORDERSTYLE setting the Component Border shape
CAPTION Setting the component title
Ctl3d sets whether the component border is 3D, this property is invalid if BorderStyle is set to Bsnone
Color Set Component Background color
Cursor sets the shape that is displayed when the mouse passes through the component
ENABLED sets whether the component can be used, and when set to false the component is grayed
Font sets the font, font size, color, etc. of text within a component
Height Set the component heights
Helpcontent used to correlate the index values in the Help description file
Left sets the distance between the component and the border of the parent component
PopupMenu Setting the right mouse button (pop-up) shortcut menu
TabOrder sets the order in which the component moves after pressing the TAB key (Focus)
TABSTOP if set to false, the focus does not stay on this component when the TAB key is pressed
The distance between the top set component and the top border of the parent component
Visible sets whether the component is visible, this property only works at execution time
Width setting component display widths
Delphi Common Event Description:
ONCHANGE events that are triggered when a component has changed
ONCLICK event triggered when the left mouse button is pressed on this component
ONDBLCLICK event that is triggered when the left mouse button is double-clicked on this component
ONENTER events that are triggered when the focus enters this component
ONEXIT event that fires when you switch to another component to cause the component to lose focus, but this event does not fire when you switch to a different form or to another application
ONKEYDOWN event triggered when a key is pressed on a component with focus, including all English, numeric keys, arrow keys, function keys, etc.
ONKEYPRESS the event that is triggered when a key is pressed on a component that has focus, but the key only includes all English, numeric keys, TAB, BACKSPACE, ENTER, ESC
ONKEYUP the event that is triggered when the user releases the key on the keyboard, press the key to see onkeydown
ONMOUSEDOWN event that is triggered when the mouse button is pressed on a component (its parameters include which mouse key is pressed, whether there is a special key (CTRL, ALT, SHIFT) pressed, and the current coordinates of the mouse)
ONMOUSEMOVE events that are triggered when the mouse moves within the component
ONMOUSEUP event that is triggered when the mouse button is released above the component
ONPAINT events that are triggered when a component needs to be redrawn, and can be custom drawn at this time


Form component (Form) common properties and events
Property Description
ACTIVE Indicates whether this form has focus
ActiveControl indicates the component in the form that currently has focus
Activemdichild indicates the subform that currently has focus in the main form
Activeolecontrol is used to get or set OLE controls on this form in response to focus changes
bordericons Specifies which icon is displayed on the form's title bar
Bordersytle to specify the appearance and behavior of the form border
Canvas provides artboards that users can display themselves in the client on the form, typically used in the OnPaint event
Clienthandle provides an MDI CLIENT WINDOW HANDLE that can be used internally by an accessible system
ClientHeight Form client Area height
Rectangle corresponding to the Clientrect form client area
ClientWidth Form client area width
DEFAULTMONITOR Specifies the preset display that this form displays for use in multi-monitor environments
Designer this form of the design interface, generally not user-defined
DropTarget to specify whether the form is the target of the current drag and drop action
Floating to indicate whether this form is anchored in another window
FORMSTATE is used to indicate the state of this form
Formstyle used to indicate the style of the form
HELPFILE for specifying the Help file
ICON specifies the icon that is displayed when the form is minimized
KEYPREVIEW Specifies whether this form needs to get keyboard input before the current active component
Mdichildcount used to get the number of subforms
Mdichildren for getting a subform (array)
menu to specify the form main Menu
Modalresult The effect of a dialog box when the form functions as a modal dialog box
Monitor is used to indicate which display the form displays
Oldcreateorder specifying when OnCreate and OnDestroy events occur
OLEFORMOBJECT Specifies the Oleform interface for OLE objects contained within this window
Parent sets the parent of this form
PARENTBIDIMODE Specifies whether this form uses the Bidimode of the parent
PixelsPerInch represents the scale of the glyphs on the system for this form design
POSITION indicates the size and position of this form
Printscale indicates the scale that this form prints
Scaled is used to specify whether the size of the form is specified by the Pixelsperintch property
Tilemode used to specify how the subform is arranged when the tile method is invoked
Visible is used to set whether this form is displayed
Windowmenu If the form is an MDI parent form that specifies the menu for the window
WINDOWSTATE used to specify how the form appears on the screen


Event description
ONPAINT occurs when a form must be redrawn
OnHelp occurs when a form receives a help request
Ondragdrop occurs when an object is pulled into this form and dropped
OnDragOver occurs when an object is pulled into this form
Onconstrainedresize occurred after the Oncanresize incident
Oncanresize confirm change when attempting to change form size
ONRESIZE occurs when the form size changes
Onstartdock occurs when an object starts to berth
Onenddock occurs when the object is parked at the end
Onundock occurs when the form is de-parked
Ondockdrop occurs when other forms are anchored to this component
Ondockover occurs when other forms are parked close to this component
Ongetsiteinfo occurs when a docking message is passed back to this form
ONCREATE occurs when a form is created
ONCLOSE occurs when the form is about to close
Onclosequery confirm that the form is actually closed when the form is closing
OnDestroy occurs when a form is released
OnShow occurs when the form is displayed
Onhide occurs when a form is hidden
ONACTIVATE occurs when a form gains focus
ONDEACTIVATE occurs when a form loses focus


Menu components (MAINMENU, PopupMenu) Common Properties
Property Description
AutoMerge is used to specify whether the main form's main menu is merged with other form main menus
HANDLE window code for main Menu
Bidimode is used to specify that the option name is read from left to right or read from right to left
IMAGES to specify the image content to display next to the option
Contents of the ITEMS option
OwnerDraw is used to specify whether the selection is self-displaying
Parentbidimode used to specify whether to inherit the Bidimode property of the parent control
WindowHandle Use the window designator for this menu


Menu Item Property Description
Action is used to specify the action that this option corresponds to
BITMAP used to specify the image content next to this option
Break is used to specify whether to create a new column starting from this option
CAPTION The name of the option display
CHECKED is used to specify whether this option is CHECKED
command to specify the Windows command ID corresponding to the option
Count is used to indicate the number of sub-options for this option
Default is used to indicate whether this option is a submenu of a preset item
Eanbled to indicate whether this option is available
Groupindex is used to specify the logical groups to which this option belongs, to control the effect of merging or radio button mutexes between main menus
HANDLE the Drop-down menu for this option is the Windows menu HANDLE
HelpContext help CONTEXT ID corresponding to this option
HINT used to set the cursor when the mouse-over selection range is selected
ImageIndex to specify which image to display next to options
Items the number of sub-menu items for this option
MENUINDEX the option index value within the parent menu of this option
Parent of this option.
Radioitem is used to set whether this option is mutually exclusive with other options in the same group
SHORTCUT shortcut keys for setting this option
Visible to set whether this option is visible


Label Common Properties:
Property Description
ALIGNMENT used to set the alignment of text within a label (horizontal)
AUTOSIZE used to set whether the label component automatically resizes according to the text within the component
Focuscontrol a component that should accept focus when you type a shortcut key inside a tag
LAYOUT is used to set how the label text is placed (vertical orientation)
Showaccelchar is used to set whether the text inside the label is allowed to display underlined shortcut key values
TRANSPARENT used to set whether the component is transparent
WordWrap is used to set whether the component text wraps when it is wider than the component width.


Properties of the edit box (edit, Maskedit):
Property Description
AutoSelect is used to set whether the component automatically selects all text after it gets focus
AUTOSIZE for setting the length of the component automatically when adding input text within the component
BORDERSTYLE for setting the component border style
CanUndo used to set whether text within a component can be undo
Charcase for setting the text case status within the component
HideSelection used to set whether the selected text is valid when the component loses focus
MAXLENGTH for setting the maximum length of input text within a component
MODIFIED can be used to determine whether the text within a component has changed
Oemconvert decide whether to convert the text ASCII code in the edit box to an OEM, and then the OEM to ASCII
PasswordChar character to be substituted when setting password input
READONLY setting edit box contents can be modified
SELLENGTH indicates the length of text selected in the edit box
SELSTART indicates the starting position of the selected text in the edit box
SELTEXT indicates the selected text in the edit box


Editmask indicates Maskedit mask string


Common Properties for Buttons (button, bitbtn, Speed button):
General Button Property Description
Cancel to set whether this button is a cancel knob (the Cancel button is the Click event of the press ESC key when the program executes)
DEFAULT refers to whether to perform this pressed click event after pressing the ENTER key
Modalresult is typically used in dialog forms, and when this button is pressed, this property value becomes the Modalresult of the modal form to which it belongs.
CAPTION set or get the caption that appears on this button


Bitbtn Property Description (Figure Form button)
GLYPH used to set the image that appears on this button
KIND used to specify the type of button
LAYOUT to set the position of the image displayed on the button
Margin is used to set the distance (in pixels) between the button edge and the edge of the image.
Numglyphs used to set the number of button images
Spacion to set the distance (in pixels) between the image and the text
STYLE to set the appearance of the button


Speed Button Property Description (Quick buttons)
Allowallup is used to set whether the group containing this quick button can maintain the up state at the same time
Down to set whether this Quick button has been selected
FLAT used to set whether this Quick button shows the effect of the edge
Groupindex Group for setting quick buttons
TRANSPARENT used to set the quick button is transparent


Common properties and events for Memo components (memo):
Property Description
LINES is used to get the Chinese text of the component (array, so it can support single-line literals)
TEXT is used to get the Chinese version of the component (string)
READONLY used to set whether the component text can be modified
SCROLLBARS for setting the component scroll bar mode
Wantreturns is used to set the input enter as text content
WordWrap used to set whether text wraps automatically.
SELSTART indicates the starting position of the selected text
SELLENGTH indicates the length of the selected text
Wanttabs is used to set the TAB key of the input as text content
SELTEXT indicates the selected text


Event description
MEMO. LINES. Add () Adds a line of text to the current line
MEMO. LINES. APPEND () Appends a line of text to the end
MEMO. LINES. INSERT adds a line of text at the specified position
MEMO. LINES. Delete Deletes the specified line text
MEMO. LINES. LoadFromFile importing text from a specified file to a component
MEMO. LINES. Loadfromstream importing text from a specified stream to a component
MEMO. LINES. SaveToFile to save the component text as a specified file
MEMO. LINES. Savetostream to save the component text as a specified stream
MEMO. Clear clears all text for the component
MEMO. Cuttoclipboard to cut the selected text to the Clipboard
MEMO. CopyToClipboard Copy the selected text to the Clipboard
MEMO. Pastefromclipboard pasting text from the Clipboard to the current position


check box (checkbox) Common Properties:
Property Description
ALIGNMENT Setting the check box header position
Allowgrayed determines if the check box has grayed status
CHECKED Determine check box status
State indicates check box status


radio button (RADIOBUTTON) Common properties:
(provides mutually exclusive options, so typically used for group implementations, available GroupBox or Radiogroup implementations)
Property Description
ALIGNMENT setting a single marquee title position
CHECKED determining the state of a radio box


Group box (GROUPBOX) Common properties: (used as containers)
Property Description
CAPTION Group box caption, typically used to indicate component usage


Common properties for a single-selection group box (Radiogroup):
Property Description
CAPTION indicates the single-selection combination name
COLUMNS indicates that the radio button is displayed in single-line or multi-behavior units
Items radio button title content (in behavior units)
ITEMINDEX indicates the index value of the currently selected radio button


list box (ListBox) Common properties:
Property Description
Canvas provides a custom artboard to display the contents of a list box item for OnDrawItem events
COLUMNS setting the number of columns for a multiple-column list box
EXTENDEDSELECT Specifies whether the SHIFT key can be used for hunting
ItemHeight Setting the height of a list box item
ITEMINDEX Specifies the index value of the selected item
The string contents of the items item
MultiSelect setting whether multiple selections are allowed
Selcount the number of items selected in the list box
SELECTED Indicates whether an item is selected
SORTED Specifies whether the items in the list box are listed in alphabetical order
STYLE indicates the list box display mode
TopIndex indicates the index value of the item at the top of the list box


Common Properties for combo boxes (ComboBox):
Property Description
Canvas provides a custom artboard to display the contents of a combo box item for OnDrawItem events
Charcase Set Text letter case status in combo box
Dropdowncount set the maximum number of items displayed in the combo box menu
Droppeddown is used to determine whether a combo box is in the state of a drop-down menu
ITEMINDEX indicates the index value of the currently selected item in the drop-down menu
Items drop-down menu item contents
MAXLENGTH set the maximum number of characters that can be entered in the edit section of a combo box
SELLENGTH indicates that the edit portion of the combo box is selected text length
SELTEXT indicates that the edit part of the combo box is selected text
SELSTART indicates the start position of the selected text in the edit section of the combo box
STYLE indicates combo box display mode


scroll bar (SCROLLBAR) Common properties:
Property Description
Max indicates scroll bar maximum value
Min indicates scroll bar minimum value
POSITION indicates the current position of the slider
LARGECHANGE indicates that a value is moved when the mouse presses the scroll bar to the area between the sliders
SmallChange indicates that moving a value when the mouse presses the arrows on both sides of the scroll bar
KIND indicates scroll bar type (horizontal or vertical type)
PAGESIZE indicates the amount of change when pageup or PageDown is pressed


Common Properties for Image frame components (image):
Property Description
AUTOSIZE whether this component is resized to be the same size as the read image
Incrementaldispaly when reading larger image files
Picture points to an image file object, which can often be a file name
STRETCH whether the image is automatically resized to this component preset size


Image list Box (IMAGELIST) Common properties:
Property Description
Bkcolor specifying the background color
Blendcolor Foreground blend Color
Number of images in COUNT component
Drawingstyle indicates the way this component is drawn with an image
Height values for each image within the height component
IMAGETYPE whether to add a mask image when drawing an image
MASKED Set whether mask can be added
Width value of each image within the width component


Toolbar component (TOOLBAR) Common properties:
Property Description
AUTOSIZE to set whether the toolbar is automatically resized to accommodate band
Buttoncount the number of buttons in the toolbar
Buttonheight the button height in the toolbar
BUTTONS a button in the toolbar with index
Buttonwidth the button width in the toolbar
Disabledimages the list of images to display when the tool button is disabled
FLAT whether to set the surface effect
Hotimages the list of images to display when the mouse is pointing to a toolbar button
IMAGES provides a list of images displayed on a toolbar button
INDENT Setting the left interval size of the toolbar
LIST sets whether title text appears to the right of the graph
ROWCOUNT Specify the number of rows in a toolbar
Showcaptions setting tool buttons to display text
Warpable if the toolbar arrangement button is automatically wrapped


Toolbutton Property Description
Allowallup sets whether the same set of tool buttons can neither be selected
Down sets whether the button can be stopped in the pressed state
Dropdownmenu menu that appears when a tool button is pressed
Grouped set the same set of tool buttons
ImageIndex the index value of the associated image in the image list box
Indeterminate whether to provide a third case of toolbar
MARKED sets whether the button has a shadow
Style Set Button styles
WRAP to see if this tool button is new for another column


Cool Bar (CoolBar) Common properties:
Property Description
ALIGN Setting the alignment of the CoolBar
AUTOSIZE set whether the cool bar is automatically resized to accommodate band
Bandborderstyle setting the border style of band
Bands shows all the band in the CoolBar
BITMAP setting the background image of the band
Fixedorder set whether the order of band can be adjusted by itself
Fixedsize set whether to limit all the band in the Cool bar with a single set degree
IMAGES provides the image required by the bands
Showtext set Band whether to display text
VERTICAL setting the arrangement of the band (arranged horizontally or vertically)


Docksite is allowed to berth


Status bar Component (STATUSBAR) Common properties:
Property Description
PANELS Setting the status bar component area
Simplepanel Setting the status bar for a single area
SimpleText setting the text for a single area of the status bar


ALIGNMENT Setting Area text alignment
Text Setting area display
Width setting area widths


Progress bar Component (PROGRESSBAR) Common Properties and events:
Property Description
Max Set Position max value
Min Set Position minimum value
ORIENTATION Setting the orientation of the component display
POSITION setting the current position of the progress bar
SMOOTH the progress pointer of the set progress bar is a smooth or spaced way
STEP sets the amount that is added when calling the StepIt method


Event description
Stepby (INTEGER) progress bar increment (specified by parameter increment)
StepIt progress bar increment (specified by step attribute increment)




Common properties of the track Bar Assembly (TRACKBAR):
Property Description
Frquency set the interval value between this control scale
Linesize setting the amount of movement when pressing the arrow key
Max Set Position max value
Min Set Position minimum value
ORIENTATION Setting the orientation of this component display
PAGESIZE setting the amount of movement of pageup or PageDown
POSITION setting the current position of this component
Selend setting the last position of the selected range
SELSTART set the start position of the selected range
Slidervisible sets whether the slider in this component is displayed
Tickmarks Setting the orientation position of the scale display
Tickstyle setting the configuration of component tick marks


Multi-page label (Pagecontrol) Common Properties
Property Description
MULTILINE sets whether the component adjusts the number of rows according to the number of labels
ActivePage Current Component Check label
TabPosition Setting the component label all locations
Style Set component label styles


CAPTION setting the specified label title
PAGEINDEX indicates the position of the label
Tabvisible set whether the specified label is displayed

Delphi Common attribute Description (extra long)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.