Use Delphi 5 -part VII-

Adjustments are made for applications multimonitor. Window size is maintained, placing it in the center of the screen. There are adjustments for multimonitor applications. PoMainFormCenter store window size, placing the center of the main window of the application. No adjustments are made for applications multimonitor. PoOwnerFormCenter store window size, placing the center of the window specified by the property Owner.
Property PrintScale
Use it to find or fix window proportions printed. Possible values
are:
-Value significance
-PoNone Not at all scales.
-PoProportional window is scaled so that the prints are about
same size as and screen.
-PoPrintToFit form is printed using the same proportions as the screen, but
modified to fit on the page.
Scaled property
Specifies whether the form will be resized depending on the value PixelsPerInch

Property ShowHint
If value is true then it will be shown a short information (Hint) on the subject
above which stopped the mouse. Ownership Tag used to store an integer values. It has a predestined role.
Property UseDockManager
Establishes whether to use a manager for operations of drag-and-dock.
Visible property
If this is true then component is visible.
Property WindowMenu
It uses alpha or to determine what menu is used for a parent window
applications for MDI (multiple document interface).
WindowState Property
Refers to how the display screen of the window. May have the following values
Significance values
-wsNormal window is displayed normally.
-wsMinimized window is displayed miminizatã
-wsMaximized maximized window is displayed.
Methods
-BringToFront method
-Bring the form in front.
-Close method
-It is used to close the form.
-Hide Method
-Hide form.
-Method Refresh, Repaint
-Redraw the form.
-ScaledBy Method (M, Y: integer)
-Scales all objects on the form of M / D times. For example if M = 15 and D = 7
dimensions of all components will multiply the value 15 / 7, the font size will also be changed.
-SendToBack method
-Send form behind all existing windows on the screen.
-SetFocus Method
It is used to select the object (control).
-Show Method
-Make visible form.
-Events
For each of the events listed below Delphi site allows us to write a routine to handle the event. If the Object Inspector Double-click one of Delphi’s events will open the code editor already wrote headers
procedure to handle the event, we will write the code that will treat event. Event handling procedure will take at least one parameter Sender: TObject which will indicate who generated the event, which generally is not parameter used. If parameters are needed to treat anumiþi event where these will
be includ and, for example OnKeyPress event that occurs at the touch of a button, will
be passed as a parameter and key (character) which has been pressed.
Event OnActivate
-Occurs when the form becomes active.
-OnCanResize event
-Occurs when the control resizes. We can set new dimensions (NewWidth, NewHeight: Integer) and determining whether we agree with resize (Resize: Boolean)
-Onclick event
-Occurs when the user can click on the form.
-OnClose event
Appears to close the shape. Action by changing the parameter we can
decide what should be done. Action parameter can have values:
-Value Description canon form must not be closed, so nothing happens.
caHide form will be hidden. May 1 application can access.
caFree form is closed and the memory allocated to him will be issued
caMinimize form will be minimized.
-OnCloseQuery event
Occurs when the Close method was called. The parameters
CanClose: Boolean decide whether or not you can close the form.
-OnConstrainedResize event
Immediately after the event OnCanResize. It is used for application
size limitations, parameters MinWidth, MinHeight, MaxWidth, setting MaxHeight
minimum length, minimum height, maximum length, maximum height. To exit the
event handling procedure will be applied constraints and will get new size, after which it will appear that allows you to adjust OnResize event final.
-OnContextPopup event
Appears at right click. Parameter MousePos: Tpoint will indicate the mouse position,
and value that we assign the Handle parameter: Boolean will decide whether to display
menu (if Handle = false and property AutoPopup = true) or if it will not run anything
(Handle = true).
OnCreate event
Appears to create the shape.
OnDblClick event
Occurs when the user performs dubclu click Format.
OnDeactivate event
Occurs when the form loses focus.
OnDestroy event
Occurs when the form is destroyed.
OnDockDrop event
Occurs when a form is submitted on the operations of drag-and-dock. As
Source parameters we have we will indicate where the object was taken, and position at which
was left X, Y
OnDockOver event
Occurs when a form is pulled over for an operation to drag and dock. As
Source parameters we have we will indicate where the object was taken, to which position
find X, Y and accept that if it has true value to support the operation, otherwise not.
OnDragDrop event
Appears when the user lets go of the object caused by operations of drag and drop. As
Source parameters we have we will indicate where the object was taken, and position at which
was left X, Y
OnDragOver event
Occurs when a form is pulled over for an operation to drag and drop. As
Source parameters we have we will indicate where the object was taken, to which position
find X, Y and accept that if it has true value to support the operation, otherwise not.
OnEndDock event
Surgery appears when shooting was finished. It is used to treat the situation
operations of drag-and-dock was finished.
OnGetSiteInfo event
Appears before OnDockDrop Docks property if it is true.
OnHelp event
Occurs when the form receives a request for help (Help).
OnHide event
Occurs when the form is hidden (ie if he Visible false)
OnKeyDown event menu (if Handle = false and property AutoPopup = true) or if it will not run anything
(Handle = true).
OnCreate event
Appears to create the shape.
OnDblClick event
Occurs when the user performs double click Format.
OnDeactivate event
Occurs when the form loses focus.
OnDestroy event
Occurs when the form is destroyed.
OnDockDrop event
Occurs when a form is submitted on the operations of drag-and-dock. As
Source parameters we have we will indicate where the object was taken, and position at which
was left X, Y
OnDockOver event
Occurs when a form is pulled over for an operation to drag and dock. As
Source parameters we have we will indicate where the object was taken, to which position
find X, Y and accept that if it has true value to support the operation, otherwise not.
OnDragDrop event
Appears when the user lets go of the object caused by operations of drag and drop. As
Source parameters we have we will indicate where the object was taken, and position at which
was left X, Y
OnDragOver event
Occurs when a form is pulled over for an operation to drag and drop. As
Source parameters we have we will indicate where the object was taken, to which position
find X, Y and accept that if it has true value to support the operation, otherwise not.
OnEndDock event
Surgery appears when shooting was finished. It is used to treat the situation
operations of drag-and-dock was finished.
OnGetSiteInfo event
Appears before OnDockDrop if Docks property is true.
OnHelp event
Occurs when the form receives a request for help (Help).
OnHide event
Occurs when the form is hidden (ie if he Visible false)

Topics: , , , , , , , , , , , , , , , , , , ,

Did you like this? Share it:

Watch tweets on:
  • You may also like

    1. Picture: Use Delphi 5 -part V-

      Use Delphi 5 -part V-

      Lesson 2 – Form (TForm) Forms can be used to describe the 50 properties, which may be establis...

    2. Picture: Use Delphi 5 -part VI-

      Use Delphi 5 -part VI-

      Composed Font property: Establishes the font used in the text that are displayed on the Canvas objec...

    3. Picture: Use Delphi 5- part III-

      Use Delphi 5- part III-

      Toolbar: On the toolbar buttons to find shortcuts to frequently used commands. -New Open Save Save a...

    4. Picture: Use Delphi 5

      Use Delphi 5

      1.Introduction: The paper is aimed at those who want to develop Windows applications using Delphi pr...

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>