VCL controls often use properties and methods

Source: Internet
Author: User

Ttabcontrol
Property
Displayrect: Only a rectangle of the control's client area is determined
Hottrack: Sets whether the word changes when the mouse is over the page label. If true, the word will turn blue
Images: Add a picture for each page label
MultiLine: If the length of the total page label is greater than the width of the control, do you agree to multi-line display
MultiSelect: Do you agree to select multiple page labels? This property is only valid if the style is tsflatbuttons or tsbuttons
OwnerDraw: Do you agree to paint the control yourself
Raggedright: Specifies whether to agree to the label page stretching to the control width
Scrollopposite: This property setting will cause multiline to be set to true. When the number of rows in a tab is greater than 1 o'clock, when you click a different page, the page below it actively flips the bottom of the control itself.
Style: Set the styles for the control, and you'll know when you try.
Tabheight: Setting the height of page labels
TabIndex: reflects the index of the current tab page. This number starts from 0
TabPosition: Select the position of the page label, points up, down, left, right
Tabs: Each page is added, deleted, changed
Tabwidth: Sets the width of the page label

Method
Gethittestinfoat: Infers in the specified numeric value where the position is located in the control
Indexoftabat: Returns the page label on which the specified position is located and returns its index
RowCount: Returns the number of rows for a page label
Scrolltabs: When Multiline is false, the method moves backward through a number of tab pages
Tabrect: Sets the rectangle that returns the label page

Event
OnChange: Triggers when the tab page changes
Onchanging: Triggers when the tab is changing
OnDrawTab: Triggers When painting a tab page
Ongetimageindex: When the label page is displayed







Tpagecontrol

Property
ActivePage: Specifies the current page
Activepageindex: Specifies the index of the current page
PageCount: Returns the number of pages
Pages: Used to specify Tabsheet for controls

Method
Canshowtab: Returns whether the specified page can be displayed
Change: System call. When the current page changes, it calls itself actively.
Doadddockclient: Specifies a mandatory mediator when the control is docked
Doremovedockclient: Specifies a must mediator when the control is being resorted to
Findnextpage: You can return the previous or next page of a page that is related to its location
GetChildren: You can perform a callback procedure for each page of a component.
Getimageindex: Specify the displayed image for a specific page
Getpagefromdockclient: You can get a single tab placed on the customer area
Getsiteinfo: Determines the docking area of the page component and determines whether the dragged window can be placed
Loaded: When a window consists of a page component that is first paged in from memory, it calls the method itself to initialize the page component
Selectnextpage: Specifies the previous page or next page of the current page
Updateactivepage: When the Pages property is changed, the method updates the Actionpage property





Timagelist

Property
Dragging: Infer If a picture is being dragged
ALLOCBY: Set the proportions of the picture to increase
Bkcolor: Setting the background color
Blendcolor: Setting foreground color
Count: The number of pictures in the list
Drawingstyle: How to draw a picture
Height: altitude of picture
ImageType: Whether to use mask code when drawing pictures
Masked: Whether mask code is included in the picture list
Width: breadth of picture

Method
Add: Add a picture, including mask code
AddIcon: Add an icon
Addimages:: Add a picture List
Addmasked: Add a mask code
Assign: Copying an Object
Clear: Empty all the pictures
Createsize: Copy a picture from another object
Delete: Remove a picture
Draw: Paint a picture in the specified index
Drawoverlay: Draw an image and overwrite the provided canvas
Getbitmap: Once again specify a picture in the specified index
GetIcon: Returns the image specified by index as a bitmap in an image parameter
Getimagebitmap: You get a bitmap that includes all the images in the image list. If not successfully returned 0
Getinstres: This method moves the specified bitmap, cursor, or icon resource into the image list
Getmaskbitmap: You can get a bitmap handle that includes all masks in the image list
GetResource: Refers to a map, cursor, or icon resource in the image list
Insert: Inserting an image
Inserticon: Bitmap can be inserted after index
insertmasked: Inserting a mask code at the specified location
Move: Moves a specified picture to a location
Overlay: The overlay mask is transparent and overwrites the image in the image, assuming that the successful return is true
Registerchanges: Use this method to use an object that is only notified when an image list occurs
Replace: Replace a picture with a new picture and mask code
Replaceicon: Replace an icon with a new icon
replacemasked: Replace a mask code with a new mask code
Resinstload: Get a picture from the resource file to the image list
Resourceload: Get a picture from the resource file to the image list
Unregisterchanges: You can delete a Tchangelink object's brochure

Event
OnChange: Triggers when content in a list changes



Trichedit
Property
Defattributes: Setting properties for all text in the control
Hidescrollbars: Set whether to hide the scroll bar
HideSelection:
Lines: Control of text in a control
Pagerect: When printing, specify a print area in pixels
PlainText: Sets whether the text in the control is plain text
Selattributes: Setting the properties of the text in the control
Sellengthl Length of selected text
SelStart: Start position of selected text
SelText: Selected text

Method
Clear: Eliminate text
FindText: Finding the specified string
Getseltextbuf: Copies the selected string to the buffer and returns its size
Print: Printing
Getcontrolsalignment: Returns the alignment of text

Event
Onprotectchange: Triggers when the user attempts to change text
Onresizerequest: Triggers when the amount of text within the control changes
Onsaveclipboard: Triggers when the text is saved to the Clipboard
Onselectionchange: Triggers when the currently selected text changes





Ttrackbar

Property
Frequency: unit value for each move
Linesize: Sets the unit value when the control is moved by the top, bottom, left, and right on the keyboard
Max: Set maximum value
Min: Set minimum value
Orientation: Sets whether the control is displayed in a horizontal or vertical manner
PageSize: Sets the unit value that the control moves when it is mobilized with page up and PAGE down on the keyboard
Position: Current Value
Selend: Set End position
SelStart: Set Start position
Slidervisible: Whether to show slide blocks
Thumblength: Sets the length of the slider
Tickmarks: Sets the display style for the control
Tickstyle: Sets the display style for the control

Method
Settick: Adds a label to the specified position



Tprogressbar

Property
Max: Maximum value of the progress bar
Min: progress bar Minimum value
Orientation: Sets the progress bar to be horizontal or vertical
Position: Current Progress value
Smooth: Sets whether to move forward smoothly or in a format
Step: The progress span of each step

Method
STEPBY: Adds the value specified in the parameter based on the original value
StepIt: Once per call, position will be added to the value in step






Tupdown

Property
Alignbutton: Select the control's position in the control, divided into left and right
Arrowkeys: Do you agree to control the control with the top or down on the keyboard
Associate: Select the control that the control controls
Increment: Sets the span of data changes each time the control is incremented or decremented
Max: Set the maximum value of the control range
Min: Sets the minimum value of the control range
Orientation: Sets whether the control is displayed in a horizontal or vertical manner
Position: Setting the current value
Thousands: If every three 10 binary numbers are separated by commas
Wrap: If the current value is the maximum or minimum value, set whether the minimum or maximum value occurs when the point is up or down

Event
Onchanging: Triggered when the value of position is changing
Onchangingex: Triggered when the value of position is changing. The difference with the above is the ability to get its new value in its event and click the Up or Down button
OnClick: Triggered when a button is clicked




Thotkey

Property
HotKey: Set or Get Hotkey
Invalidkeys: Set what hotkeys are not agreed to, and the value of which I think you can see clearly
Modifiers: Setting the default value type

Event
OnChange: Occurs when the hotkey changes




Tanimate

Property
Active: Activates the control
Center: Whether the animation is displayed in the middle
Commonavi:
FileName:
Framecount: Returns the number of frames currently in motion, read-only
Frameheight: The height of the animation, just read
Framewidth: The width of the animation, only the square
Open: Opening animations
Repetitions: Set the number of cycles
Reshandle: Returns a handle as a module that includes the AVI resource
ResID: Specify the resource ID of the AVI
Resname: Specify the name of the AVI resource
Startframe: Start Frame
Stopframe: Stopped frames
Timers: Sets whether to return a time message

Method
Canautosize: Adjusts the new size and returns whether it agrees
Play: Start playback
Reset: Once again set to the original default value
Seek: Displays the specified frame
Stop: Stop animation

Event
OnClose: Triggers when animation is turned off
OnOpen: Triggers when animation is turned on
OnStart: Triggers when animation is started
OnStop: Trigger when stop animation



Tdatetimepicker

Property
Calalignment: When the drop-down box is listed, is it left or right aligned
Checked: When ShowCheckBox is true, sets whether the checkbox is selected
DateFormat: Sets whether the date is displayed as a short date or as a long date
Datemode: Set how the control is displayed
Droppeddown: Read-only, infer whether a drop-down box is listed
Format: Sets the display mode. As ' Today ' s date: ' MMM dd, yyyy
Kind: Select whether to show the time or the date
Parseinput: Do you agree to user input
ShowCheckBox: Whether to display a checkbox
Time: Indicates when the user entered

Event
OnChange: Triggered when the date is changed
Oncloseup: Triggered when the drop-down box is closed
Ondropdown: Triggers when the drop-down box is opened
Onuserinput: Triggers when user input



Tmorthcalenbar

Property
Calcolors: Sets the color of each part of the control
Date: Indicates the day on the control
EndDate: Indicates the last selected date on the control
FirstDayOfWeek
MaxDate: The maximum agreed date
Maxselectrange:
MinDate: Minimum agreed date
MultiSelect: Do you agree to multi-select
Showtoday: Whether today's date is displayed
Showtodaycircle: Whether to add a logo to today's date
Weeknumbers: Whether to show that every week is the first week of the year

Method
Canautosize: Sets the size of the control and returns whether to set it again
Constrainedresize: Sets the maximum, minimum width and height of the control
Getcalendarhandle: Returns the handle to the calendar
Msgsetcalcolors: Sets the color of each part of the control
Msgsetdatetime: Set the current date
Msgsetrange: Setting the date range

Event
Ongetmonthinfo: Triggered when the current month has changed





Ttreeview

Property
AutoExpand: Set whether to open the default item on its own initiative
Canvas: Just read, visit the canvas of it
Changedelay: Determines the delay in selecting nodes and onchange events, in MS
DropTarget: Determines whether a node in a tree-close view is displayed as the target of a play operation
HideSelection: Whether a visual effect is selected when the focus leaves the control
Hottrack: True when the mouse is over the list to highlight
Images: Adding a picture to a node
Indent: Determines the amount of pixel indentation of the parent node when the node is expanded relative to its expansion
Items: Working with individual nodes
MultiSelect: Do you agree to multi-select
Multiselectstyle: When MultiSelect is true, determine how multiple Select nodes work
ReadOnly: whether to read only
Rightclickselect: Use this property to agree that the Select property specifies the node selected by right-clicking the button
Rowselect: True when the entire row is displayed in height. Ignore this property if Showlines is True
Selected: operation on a selected node
Selectioncount: Select the number of nodes, assuming none is null
Selections: Returns information for a selected node, read-only
Showbuttons: Show + and-button
Showlines: Whether to show the connection line
Showroot: Whether to display the primary cable
SortType: Choosing a Sort Type
Stateimages: Provides a set of node state bitmaps that appear on the left side of the item icon as an attached image
ToolTips: Specifies whether there is a ToolTip in the project in the control
TopItem: Specifies the topmost node

Method
Alphasort: Sorting nodes in alphabetical order, successfully returning to True
ClearSelection: Deselect All selected nodes
Customsort: The nodes can be sorted in the order specified by the Sortproc parameters
Deselect: Deselect the selected node
Findnexttoselect: Returns the next selectable node
Fullcollapse: Collapses all nodes in a component to suppress all nodes except the one-level node
Fullexpand: All nodes in the extension component
Gethittestinfoat: Determines which part of the tree graph the points specified by x and Y are located in
GetNodeAt: Access to the node at the location specified by x and Y
Getselections: Generates Ongetselections event. and empties alist and then copies all the selected node objects into the selected value returned
Isediting: Whether you are editing
LoadFromFile: The contents of the control are specified by the specified file
Loadfromstream: The contents of the control are specified by the specified stream
SaveToFile: Save the contents of the control to a file
Savetostream: Saves the contents of the control to the stream
Select: Selects the specified node
Subselect

Event
Onaddition: Triggers when a new node is added
Onadvancedcustomdraw: Triggering at different stages during drawing of the tree view component
Onadvancedcustomdrawitem: Triggers during different stages of drawing a new node in the tree view
OnChange: Triggers when the selected node is changed
Onchanging: Triggers when the selected node is about to change
Oncollapsed: Node collapses after node generation
Oncollapsing: Triggered when a node is collapsed
Oncompare: During node sequencing, two nodes are triggered when compared
Oncreatenodeclass: Triggers when a new node is created
Oncustomdraw: Drawing component Group generation
Oncustomdrawitem: Generated before drawing a node
Ondeletion: Triggered when a node is deleted
Onedited: Triggered when the user starts editing the text of a node
Onediting: Triggered when the user starts editing the Text property of a node
Onexpanded: Occurs after the node is expanded
Onexpanding: Occurs when the node will be expanded
Ongetimageindex: Triggered when a tree view finds the imageindex of a node
Ongetselectedindex: Generated when finding the imageindex of a node




TListView

Property
Allocby: Total number of items that can be specified
Boundingrect: Rectangle screen coordinates for all items in the encapsulated List view consent to the application resizing the component, agreeing to adapt the item to determine whether the mouse is on its list item
Checkboxes: Whether to add a checkbox at the moment
Column: Read-only, operation on the specified column
ColumnClick: You can specify whether the Oncolumnclick event will occur when the user header
Columns: Working with columns
DropTarget: Whether an item in a list view is displayed as the target of a drag-and-drop operation
Flatscrollbars: Do you want the scroll bar to have a smooth effect
Fulldrag: Whether to draw again when the label is dragged
GridLines: Whether the grid is displayed when Viewstyle is VSReport
HideSelection: Whether a visual effect is selected when the focus leaves the control
Hottrack: True when the mouse is highlighted on a list item
Hottrackstyles: Can specify the style of the hotspot tracking
Hovertime: Can indicate the time the mouse must stay before the list item is selected, Unit MS, when Hottrack is true
Iconoptions: Options for setting icons
Itemfocused: Determines which items the user can edit and sets the focus
ItemIndex: The current specified item
Items: Working with projects
Largeimages: When Viewstyle is Vsicon, the control displays an image
MultiSelect: Do you agree to multi-select
Ownerdata: When True, the list view can be specified as a virtual
OwnerDraw: Set this property to accept the OnDrawItem event instead of drawing the default list item for the Consent list view
ReadOnly: set to read only
Rowselect: Whether you agree to select the entire row. This property is only valid when Viewstyle is VSReport
Selcount: Only read returns the number of items selected
Selected: Indicates the list view item that is selected in the control for the item callout
Showcolumnheaders: Whether to display column headings, use columns to create and add a column header
Showworkareas: Whether the workspace is drawn with its color and display name labels
Smallimages: The displayed image of the item when Viewstyle is in addition to Vsicon
SortType: Select the type of sorting
Stateimages: You can specify the bitmap that will be displayed on this side
TopItem: Point to the top of the project
Vieworigin: Can determine the logical region of the list image
Viewstyle: Setting the style of the control
Visiblerowcount: When Viewstyle is Vslist or vsreport, you can determine the number of single-column items displayed in the viewable area, only the items that are visible are counted
Workareas: When Viewstyle is Vsicon or Vssmallicon, use this property to define a separate work area that divides the customer area in the list view.

Method
Alphasort: Self-ordering when SortType is not stnone
Arrange: Clears the arrangement of bitmaps when the Viewstyle property is Vsicon or Vssmallicon
Clear: Delete all items
ClearSelection: Remove the currently selected item
Copyselection: Copied to an item in the specified item in the number of parameters
Customsort: This method can use the Sortproc function to arrange items in a list
deleteselected: Delete the selected item
Findcaption: You can find a list view item with a string callout specified by value
FindData: A list item that can find the Data property and value
Gethittestinfoat: Returns the position of the specified coordinates
Getitemat: Infers which project the given coordinates are in
Getnearestitem: Find a recent project from a given coordinate
GetNextItem: Return to the next project in the Start Project
Getsearchstring: Can get user input character sequence when the list view has focus, List view joins string to find string, and finds matching item
Isediting: Infer whether the current user is working on a project
Scroll: Scrolls the contents of a list view by horizontal and vertical pixels
SelectAll: Select all the items
Stringwidth: Setting the height of a string
Updateitems: Redrawing the scope of the project
AddItem: Join a project
Moveselection: Moving an item

Event
Onadvancedcustomdraw: Generated in different states during the drawing of the component. Unlike the OnDrawItem event, a component receives the event even if Ownerdata is False
Onadvancedcustomdrawitem: Triggering different states during drawing of component projects
Onadvancedcustomdrawsubitem: Triggering different states during drawing component sub-projects
OnChange: Triggers when items in the list change
Onchanging: Triggers when items in the list are changing
Oncolumnclick: Fires when a column is clicked
Oncolumndragged: Triggers when a column is dragged to a new position
Oncolumnrightclick: Triggers when the user right-clicks a column
Oncompare: Triggers when two items need to be arranged in a comparison list
Oncustomdraw: Triggers when a list view must be drawn
Oncustomdrawitem: Triggers when an item in the list must be drawn
Oncustomdrawsubitem: Triggers when a sub-item in the list must be drawn
OnData: This event occurs immediately before an item is displayed in the List view component
Ondatafind: Find a project and return custom data related to the project. This event is only valid if the Ownerdata property is True
Ondatahint: Occurs when the contents of a list view change (such as when a user scrolls the list view)
Ondatastatechange: Occurs when the scope of a project changes state. The event is valid only if the Ownerdata property is True
Ondeletion: Triggers when an item in the list view is deleted
OnDrawItem: Triggers when a project is drawn
Onedited: Triggers when editing the caption of a project
Onediting: Triggers when an item is being edited
Ongetimageindex: Triggers When an item is about to be displayed in a component
Ongetsubitemimage: When a subproject is about to display a trigger in the component
Oninfotip: Triggered when the user stops on an item in the list view
OnInsert: Inserting a new item in the list view occurs
Onselectitem: Triggered when the item is selected





Theadercontrol

Property
Canvas: Read-only to access the canvas
Dragreorder
Fulldrag: Specifies whether the caption is redrawn when dragged
Hottrack: Whether the color of a character changes when the mouse passes through the text of each item. It works when style is hsbuttons.
Sections: Manipulating its items
Style: Select a style for the control
Method
Flipchildren: Reverse the order of items

Event
ONDRAWSECTIONL: Triggers when a project needs to be redrawn
Onsectionclick: Triggers when an item is clicked
Onsectionresize: Triggers when the size of the item is resized again
Onsectiontrack: Fires when the size of the item is resized again, but it reflects the current state of the item, as compared to the
Oncreatesectionclass: The object class for the specified project when the program executes
Onsectiondrag: triggers when dragging items
Onsectionenddrag: Triggered when the item is moved, after the Onsectiondrag event






Tstatusbar

Property
Autohint: Whether to display the hint of all controls on the parent control that it is on its own initiative
Canvas: Just read, visit the canvas of it
Panels:: Specify multiple panels
Parent: Specifies its parental control
Simplepanel: Sets whether the control displays a simple panel or displays multiple panels
SimpleText: Set Display simple information
Sizegrip: Whether to display the right triangle marker
Usesystemfont: Whether to use system fonts

Method
ExecuteAction: Executes the action specified in the Action property
Flipchildren: Specify the opposite position of the panel
SetBounds: Sets the top, bottom, left, and right positions of controls

Event
Ondrawpanel: Triggers when the panel needs to be drawn again
Oncreatepanelclass: Triggers when a panel needs to be created
Onhint: Triggers when prompt is displayed






Ttoolbar

Property
Buttoncount: The number of buttons on the toolbar. Just read
Buttonheight: Setting the height of the button
Buttons: Action on the button on the toolbar. Just read
Buttonwidth: Sets the width of the button
Customizable: When the program executes, can the user customize the toolbar
Customizekeyname
Customizevaluename
Disabledimages
Flat: Whether there is a floating effect
Hotimages
Images: Select a picture for the button
Indent: The distance between the control inside the control and the left margin
List: Button within the control shows the style, true, left is the image, the right side is the form of the label display
Menu: Select a main Menu
RowCount: Read only. Returns the number of rows within the control
Showcaptions: Whether to display caption text on a button
Transparent: whether Transparent
Wrapable: If the total width of all controls inside the control is greater than the width of the control, do you want to wrap it yourself?

Event
Onadvancedcustomdraw
Onadvancedcustomdrawbutton
Oncustomdraw: Fires when the control must be drawn
Oncustomdrawbutton: Fires when a button on a control is drawn
Oncustomizeadded: Triggered when the user joins a button to the control
Oncustomizecandelete: When the user tries to remove a button-in trigger from the control
Oncustomizecaninsert: Triggered when the user attempts to add a button to the control
Oncustomized: Triggered when a user finishes a change to the control
Oncustomizedelete: Triggered when a user deletes a button from the control
Oncustomizenewbutton: Triggered when a user attempts to add a new button to the control
Oncustomizereset: Triggers when a user cancels a custom toolbar
Oncustomizing: Triggers when the user cancels a change in the toolbar







Tcoolbar

Property
Bandborderstyle: Set border style for Tcoolbar Central
Bandmaximize: Can specify a single area maximization when the user's action, stating that the user cannot maximize the fixed size of the zone
Bands: Save a Tcoolbands
Bitmap: Images displayed after the Tcoolband area
Constraints: Specifies the maximum and minimum values for the width and height of the component, which cannot be violated when the component is resized again
Docksite: Specifies whether the component is the target of a drag dock operation
Fixedorder: To be true, you can arrange the Tcoolbar in the same time by dragging the mouse, but you cannot change the original order.
Fixedsize: Determine whether the Tcoolbar area can maintain a uniform height (or width)
Showtext: Whether the contents of the Tcoolband text are displayed when the program executes
Vertical: Default is False, the extents in the assembly are arranged horizontally from left to right, from top to bottom, or vice versa

Method
Flipchildren: The method overloads the inherited method to prevent the rollover of subcomponents in the Assembly

Event
OnChange: Triggers when position and size change







Tpagescroller

Property
AutoScroll: Do you want to roll your own initiative
Buttonsize: Setting the size of the button
Control: Select the controls that you want to make
Dragscroll: When you drag the arrow on the page scroll component when you are true, the page scrolling component scrolls
Margin: The distance of the controlled control from the control
Orientation: Setting the direction of the control
Position: Determines the scroll position of the page The scroll component

Method
Getbuttonstate: Returns the state of the button
Scroll: Page scrolling component is generated immediately before scrolling

Event
Onscroll: Triggers when scrolling







Tcommboboxex

Property
Dropdowncount: Maximum number of items in a drop-down list
Images: Select a picture for an item in the drop-down list
ItemHeight: Height of items in drop-down list
Itemsex: Working with items in a drop-down list
SelText: Selected text
Style: Styles for drop-down list boxes
Styleex: Determining the appearance and behavior of items in a list
Csexcasesensitive: Find headings that differentiate between uppercase and lowercase, including the location of the list as a user type item
Csexnoeditimage: Items in the list do not display the corresponding image
Csexnoeditimageindent: Items in the list do not display indents
Csexnosizelimit: The extended combo box can be vertically resized to be less than the drop-down button in the edit area
Csexpathwordbreak: Backslash (), forward slash (/), and period (.) Characters are spaced to guide the input path name and URLs

Event
Onbeginedit: Triggered when the user starts editing a string
Onendedit: Triggered when the user finishes editing a string

VCL controls often use properties and methods

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.