KCL Design System - TMqyClipboard
|
|
Version 1.00
|
TMqyClipboard is a class
deprived from TClipboard which extend the function of Put/Get multiple components
to/from the clipboard. In uint MqyClipbrdUtils, we declare a function: MqyClipboard:
TMqyClipboard. You can use this function directly as the origin Delphi's
Clipboard function.
Unit
MqyClipbrdUtils
Hierarchy
TObject - TPersistent - TClipboard
- TMqyClipboard
Methods
function GetComponents(Owner,
Parent: TComponent; LeftOffset: Integer = 0; TopOffset: Integer = 0): TComponent;
Paste components from clipboard.
The components will be insert to Owner with Parent. If a TControl is pasted,
and there is another control in Parent that with the same Top and Left with
this control, then, the pasted control's Top and Left will be changed a little
with LeftOffset and TopOffset. The function returns that last component pasted
from the clipboard.
procedure SetComponents(AComponents:
TComponentList; IncludeChild: Boolean = False);
Copy AComponents(may be multiple)
to clipboard.
Demos
DfmBuilder
MQY Studio 2002.12