2006-05-30 16:23:25 +02:00
|
|
|
{ Compiletime Extctrls support }
|
|
|
|
unit uPSC_extctrls;
|
|
|
|
|
|
|
|
{$I PascalScript.inc}
|
|
|
|
interface
|
|
|
|
uses
|
|
|
|
uPSCompiler, uPSUtils;
|
|
|
|
|
|
|
|
(*
|
|
|
|
Will register files from:
|
|
|
|
ExtCtrls
|
|
|
|
|
|
|
|
Requires:
|
|
|
|
STD, classes, controls, graphics {$IFNDEF PS_MINIVCL}, stdctrls {$ENDIF}
|
|
|
|
*)
|
|
|
|
|
|
|
|
procedure SIRegister_ExtCtrls_TypesAndConsts(cl: TPSPascalCompiler);
|
|
|
|
|
|
|
|
procedure SIRegisterTSHAPE(Cl: TPSPascalCompiler);
|
|
|
|
procedure SIRegisterTIMAGE(Cl: TPSPascalCompiler);
|
|
|
|
procedure SIRegisterTPAINTBOX(Cl: TPSPascalCompiler);
|
|
|
|
procedure SIRegisterTBEVEL(Cl: TPSPascalCompiler);
|
|
|
|
procedure SIRegisterTTIMER(Cl: TPSPascalCompiler);
|
|
|
|
procedure SIRegisterTCUSTOMPANEL(Cl: TPSPascalCompiler);
|
|
|
|
procedure SIRegisterTPANEL(Cl: TPSPascalCompiler);
|
|
|
|
{$IFNDEF CLX}
|
|
|
|
procedure SIRegisterTPAGE(Cl: TPSPascalCompiler);
|
|
|
|
procedure SIRegisterTNOTEBOOK(Cl: TPSPascalCompiler);
|
|
|
|
procedure SIRegisterTHEADER(Cl: TPSPascalCompiler);
|
|
|
|
{$ENDIF}
|
|
|
|
procedure SIRegisterTCUSTOMRADIOGROUP(Cl: TPSPascalCompiler);
|
|
|
|
procedure SIRegisterTRADIOGROUP(Cl: TPSPascalCompiler);
|
2024-05-10 14:35:33 +02:00
|
|
|
{$IFDEF DELPHI14UP}
|
|
|
|
procedure SIRegisterTCUSTOMLINKLABEL(Cl: TPSPascalCompiler);
|
|
|
|
procedure SIRegisterTLINKLABEL(Cl: TPSPascalCompiler);
|
|
|
|
{$ENDIF}
|
2006-05-30 16:23:25 +02:00
|
|
|
procedure SIRegister_ExtCtrls(cl: TPSPascalCompiler);
|
|
|
|
|
|
|
|
implementation
|
|
|
|
procedure SIRegisterTSHAPE(Cl: TPSPascalCompiler);
|
|
|
|
begin
|
2016-05-13 14:34:11 +02:00
|
|
|
with Cl.AddClassN(cl.FindClass('TGraphicControl'), 'TShape') do
|
2006-05-30 16:23:25 +02:00
|
|
|
begin
|
2018-12-29 14:53:14 +01:00
|
|
|
{$IFDEF DELPHI4UP}
|
|
|
|
RegisterProperty('Anchors', 'TAnchors', iptrw);
|
|
|
|
{$ENDIF}
|
2021-08-25 12:31:51 +02:00
|
|
|
{$IFDEF FPC}
|
|
|
|
RegisterProperty('Anchors', 'TAnchors', iptrw);
|
|
|
|
{$ENDIF}
|
2016-05-13 14:34:11 +02:00
|
|
|
RegisterProperty('Brush', 'TBrush', iptrw);
|
|
|
|
RegisterProperty('Pen', 'TPen', iptrw);
|
|
|
|
RegisterProperty('Shape', 'TShapeType', iptrw);
|
2006-05-30 16:23:25 +02:00
|
|
|
|
|
|
|
{$IFNDEF PS_MINIVCL}
|
2016-05-13 14:34:11 +02:00
|
|
|
RegisterMethod('procedure StyleChanged(Sender: TObject)');
|
|
|
|
RegisterProperty('DragCursor', 'LongInt', iptrw);
|
|
|
|
RegisterProperty('DragMode', 'TDragMode', iptrw);
|
|
|
|
RegisterProperty('ParentShowHint', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('OnDragDrop', 'TDragDropEvent', iptrw);
|
|
|
|
RegisterProperty('OnDragOver', 'TDragOverEvent', iptrw);
|
|
|
|
RegisterProperty('OnEndDrag', 'TEndDragEvent', iptrw);
|
|
|
|
RegisterProperty('OnMouseDown', 'TMouseEvent', iptrw);
|
|
|
|
RegisterProperty('OnMouseMove', 'TMouseMoveEvent', iptrw);
|
|
|
|
RegisterProperty('OnMouseUp', 'TMouseEvent', iptrw);
|
|
|
|
RegisterProperty('OnStartDrag', 'TStartDragEvent', iptrw);
|
2006-05-30 16:23:25 +02:00
|
|
|
{$ENDIF}
|
|
|
|
end;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure SIRegisterTIMAGE(Cl: TPSPascalCompiler);
|
|
|
|
begin
|
2016-05-13 14:34:11 +02:00
|
|
|
with Cl.AddClassN(cl.FindClass('TGraphicControl'), 'TImage') do
|
2006-05-30 16:23:25 +02:00
|
|
|
begin
|
2018-12-29 14:53:14 +01:00
|
|
|
{$IFDEF DELPHI4UP}
|
|
|
|
RegisterProperty('Anchors', 'TAnchors', iptrw);
|
|
|
|
{$ENDIF}
|
2021-08-25 12:31:51 +02:00
|
|
|
{$IFDEF FPC}
|
|
|
|
RegisterProperty('Anchors', 'TAnchors', iptrw);
|
|
|
|
{$ENDIF}
|
2016-05-13 14:34:11 +02:00
|
|
|
RegisterProperty('Canvas', 'TCanvas', iptr);
|
|
|
|
RegisterProperty('AutoSize', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('Center', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('Picture', 'TPicture', iptrw);
|
|
|
|
RegisterProperty('Stretch', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('OnClick', 'TNotifyEvent', iptrw);
|
|
|
|
RegisterProperty('OnDblClick', 'TNotifyEvent', iptrw);
|
2006-05-30 16:23:25 +02:00
|
|
|
|
|
|
|
{$IFNDEF PS_MINIVCL}
|
2016-05-13 14:34:11 +02:00
|
|
|
RegisterProperty('DragCursor', 'LongInt', iptrw);
|
|
|
|
RegisterProperty('DragMode', 'TDragMode', iptrw);
|
|
|
|
RegisterProperty('ParentShowHint', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('PopupMenu', 'TPopupMenu', iptrw);
|
|
|
|
RegisterProperty('OnDragDrop', 'TDragDropEvent', iptrw);
|
|
|
|
RegisterProperty('OnDragOver', 'TDragOverEvent', iptrw);
|
|
|
|
RegisterProperty('OnEndDrag', 'TEndDragEvent', iptrw);
|
|
|
|
RegisterProperty('OnMouseDown', 'TMouseEvent', iptrw);
|
|
|
|
RegisterProperty('OnMouseMove', 'TMouseMoveEvent', iptrw);
|
|
|
|
RegisterProperty('OnMouseUp', 'TMouseEvent', iptrw);
|
|
|
|
RegisterProperty('OnStartDrag', 'TStartDragEvent', iptrw);
|
2006-05-30 16:23:25 +02:00
|
|
|
{$ENDIF}
|
|
|
|
end;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure SIRegisterTPAINTBOX(Cl: TPSPascalCompiler);
|
|
|
|
begin
|
2016-05-13 14:34:11 +02:00
|
|
|
with Cl.AddClassN(cl.FindClass('TGraphicControl'), 'TPaintBox') do
|
2006-05-30 16:23:25 +02:00
|
|
|
begin
|
2018-12-29 14:53:14 +01:00
|
|
|
{$IFDEF DELPHI4UP}
|
|
|
|
RegisterProperty('Anchors', 'TAnchors', iptrw);
|
|
|
|
{$ENDIF}
|
2021-08-25 12:31:51 +02:00
|
|
|
{$IFDEF FPC}
|
|
|
|
RegisterProperty('Anchors', 'TAnchors', iptrw);
|
|
|
|
{$ENDIF}
|
2016-05-13 14:34:11 +02:00
|
|
|
RegisterProperty('Canvas', 'TCanvas', iptr);
|
|
|
|
RegisterProperty('Color', 'TColor', iptrw);
|
|
|
|
RegisterProperty('Font', 'TFont', iptrw);
|
|
|
|
RegisterProperty('ParentColor', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('ParentFont', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('OnClick', 'TNotifyEvent', iptrw);
|
|
|
|
RegisterProperty('OnDblClick', 'TNotifyEvent', iptrw);
|
|
|
|
RegisterProperty('OnPaint', 'TNotifyEvent', iptrw);
|
2006-05-30 16:23:25 +02:00
|
|
|
|
|
|
|
{$IFNDEF PS_MINIVCL}
|
2016-05-13 14:34:11 +02:00
|
|
|
RegisterProperty('DragCursor', 'LongInt', iptrw);
|
|
|
|
RegisterProperty('DragMode', 'TDragMode', iptrw);
|
|
|
|
RegisterProperty('ParentShowHint', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('PopupMenu', 'TPopupMenu', iptrw);
|
|
|
|
RegisterProperty('OnDragDrop', 'TDragDropEvent', iptrw);
|
|
|
|
RegisterProperty('OnDragOver', 'TDragOverEvent', iptrw);
|
|
|
|
RegisterProperty('OnEndDrag', 'TEndDragEvent', iptrw);
|
|
|
|
RegisterProperty('OnMouseDown', 'TMouseEvent', iptrw);
|
|
|
|
RegisterProperty('OnMouseMove', 'TMouseMoveEvent', iptrw);
|
|
|
|
RegisterProperty('OnMouseUp', 'TMouseEvent', iptrw);
|
|
|
|
RegisterProperty('OnStartDrag', 'TStartDragEvent', iptrw);
|
2006-05-30 16:23:25 +02:00
|
|
|
{$ENDIF}
|
|
|
|
end;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure SIRegisterTBEVEL(Cl: TPSPascalCompiler);
|
|
|
|
begin
|
2016-05-13 14:34:11 +02:00
|
|
|
with Cl.AddClassN(cl.FindClass('TGraphicControl'), 'TBevel') do
|
2006-05-30 16:23:25 +02:00
|
|
|
begin
|
2018-12-29 14:53:14 +01:00
|
|
|
{$IFDEF DELPHI4UP}
|
|
|
|
RegisterProperty('Anchors', 'TAnchors', iptrw);
|
|
|
|
{$ENDIF}
|
2021-08-25 12:31:51 +02:00
|
|
|
{$IFDEF FPC}
|
|
|
|
RegisterProperty('Anchors', 'TAnchors', iptrw);
|
|
|
|
{$ENDIF}
|
2016-05-13 14:34:11 +02:00
|
|
|
RegisterProperty('Shape', 'TBevelShape', iptrw);
|
|
|
|
RegisterProperty('Style', 'TBevelStyle', iptrw);
|
2006-05-30 16:23:25 +02:00
|
|
|
|
|
|
|
{$IFNDEF PS_MINIVCL}
|
2016-05-13 14:34:11 +02:00
|
|
|
RegisterProperty('ParentShowHint', 'Boolean', iptrw);
|
2006-05-30 16:23:25 +02:00
|
|
|
{$ENDIF}
|
|
|
|
end;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure SIRegisterTTIMER(Cl: TPSPascalCompiler);
|
|
|
|
begin
|
2016-05-13 14:34:11 +02:00
|
|
|
with Cl.AddClassN(cl.FindClass('TComponent'), 'TTimer') do
|
2006-05-30 16:23:25 +02:00
|
|
|
begin
|
2016-05-13 14:34:11 +02:00
|
|
|
RegisterProperty('Enabled', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('Interval', 'Cardinal', iptrw);
|
|
|
|
RegisterProperty('OnTimer', 'TNotifyEvent', iptrw);
|
2006-05-30 16:23:25 +02:00
|
|
|
end;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure SIRegisterTCUSTOMPANEL(Cl: TPSPascalCompiler);
|
|
|
|
begin
|
2016-05-13 14:34:11 +02:00
|
|
|
Cl.AddClassN(cl.FindClass('TCustomControl'), 'TCustomPanel');
|
2006-05-30 16:23:25 +02:00
|
|
|
end;
|
|
|
|
|
|
|
|
procedure SIRegisterTPANEL(Cl: TPSPascalCompiler);
|
|
|
|
begin
|
2016-05-13 14:34:11 +02:00
|
|
|
with Cl.AddClassN(cl.FindClass('TCustomPanel'), 'TPanel') do
|
2006-05-30 16:23:25 +02:00
|
|
|
begin
|
2016-05-13 14:34:11 +02:00
|
|
|
RegisterProperty('Alignment', 'TAlignment', iptrw);
|
2018-12-29 14:53:14 +01:00
|
|
|
{$IFDEF DELPHI4UP}
|
|
|
|
RegisterProperty('Anchors', 'TAnchors', iptrw);
|
|
|
|
{$ENDIF}
|
2016-05-13 14:34:11 +02:00
|
|
|
RegisterProperty('BevelInner', 'TPanelBevel', iptrw);
|
|
|
|
RegisterProperty('BevelOuter', 'TPanelBevel', iptrw);
|
2018-12-23 19:56:11 +01:00
|
|
|
{$IFDEF DELPHI2009UP}
|
|
|
|
RegisterProperty('BevelKind', 'TBevelKind', iptrw);
|
|
|
|
{$ENDIF}
|
2016-05-13 14:34:11 +02:00
|
|
|
RegisterProperty('BevelWidth', 'TBevelWidth', iptrw);
|
|
|
|
RegisterProperty('BorderWidth', 'TBorderWidth', iptrw);
|
|
|
|
RegisterProperty('BorderStyle', 'TBorderStyle', iptrw);
|
|
|
|
RegisterProperty('Caption', 'string', iptrw);
|
|
|
|
RegisterProperty('Color', 'TColor', iptrw);
|
|
|
|
RegisterProperty('Font', 'TFont', iptrw);
|
|
|
|
RegisterProperty('ParentColor', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('ParentFont', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('OnClick', 'TNotifyEvent', iptrw);
|
|
|
|
RegisterProperty('OnDblClick', 'TNotifyEvent', iptrw);
|
|
|
|
RegisterProperty('OnEnter', 'TNotifyEvent', iptrw);
|
|
|
|
RegisterProperty('OnExit', 'TNotifyEvent', iptrw);
|
2006-05-30 16:23:25 +02:00
|
|
|
|
|
|
|
{$IFNDEF PS_MINIVCL}
|
2016-05-13 14:34:11 +02:00
|
|
|
RegisterProperty('DragCursor', 'LongInt', iptrw);
|
|
|
|
RegisterProperty('DragMode', 'TDragMode', iptrw);
|
2006-05-30 16:23:25 +02:00
|
|
|
RegisterProperty('CTL3D', 'Boolean', iptrw);
|
2016-05-13 14:34:11 +02:00
|
|
|
RegisterProperty('Locked', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('ParentCtl3D', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('ParentShowHint', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('PopupMenu', 'TPopupMenu', iptrw);
|
|
|
|
RegisterProperty('OnDragDrop', 'TDragDropEvent', iptrw);
|
|
|
|
RegisterProperty('OnDragOver', 'TDragOverEvent', iptrw);
|
|
|
|
RegisterProperty('OnEndDrag', 'TEndDragEvent', iptrw);
|
|
|
|
RegisterProperty('OnMouseDown', 'TMouseEvent', iptrw);
|
|
|
|
RegisterProperty('OnMouseMove', 'TMouseMoveEvent', iptrw);
|
|
|
|
RegisterProperty('OnMouseUp', 'TMouseEvent', iptrw);
|
|
|
|
RegisterProperty('OnResize', 'TNotifyEvent', iptrw);
|
|
|
|
RegisterProperty('OnStartDrag', 'TStartDragEvent', iptrw);
|
2006-05-30 16:23:25 +02:00
|
|
|
{$ENDIF}
|
|
|
|
end;
|
|
|
|
end;
|
|
|
|
{$IFNDEF CLX}
|
|
|
|
procedure SIRegisterTPAGE(Cl: TPSPascalCompiler);
|
|
|
|
begin
|
2016-05-13 14:34:11 +02:00
|
|
|
with Cl.AddClassN(cl.FindClass('TCustomControl'), 'TPage') do
|
2006-05-30 16:23:25 +02:00
|
|
|
begin
|
2016-05-13 14:34:11 +02:00
|
|
|
RegisterProperty('Caption', 'string', iptrw);
|
2006-05-30 16:23:25 +02:00
|
|
|
end;
|
|
|
|
end;
|
|
|
|
procedure SIRegisterTNOTEBOOK(Cl: TPSPascalCompiler);
|
|
|
|
begin
|
2016-05-13 14:34:11 +02:00
|
|
|
with Cl.AddClassN(cl.FindClass('TCustomControl'), 'TNotebook') do
|
2006-05-30 16:23:25 +02:00
|
|
|
begin
|
2016-05-13 14:34:11 +02:00
|
|
|
RegisterProperty('ActivePage', 'string', iptrw);
|
2018-12-29 14:53:14 +01:00
|
|
|
{$IFDEF DELPHI4UP}
|
|
|
|
RegisterProperty('Anchors', 'TAnchors', iptrw);
|
|
|
|
{$ENDIF}
|
2016-05-13 14:34:11 +02:00
|
|
|
RegisterProperty('Color', 'TColor', iptrw);
|
|
|
|
RegisterProperty('Font', 'TFont', iptrw);
|
|
|
|
RegisterProperty('PageIndex', 'Integer', iptrw);
|
|
|
|
RegisterProperty('Pages', 'TStrings', iptrw);
|
|
|
|
RegisterProperty('ParentColor', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('ParentFont', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('OnClick', 'TNotifyEvent', iptrw);
|
|
|
|
RegisterProperty('OnDblClick', 'TNotifyEvent', iptrw);
|
|
|
|
RegisterProperty('OnEnter', 'TNotifyEvent', iptrw);
|
|
|
|
RegisterProperty('OnExit', 'TNotifyEvent', iptrw);
|
|
|
|
RegisterProperty('OnPageChanged', 'TNotifyEvent', iptrw);
|
2006-05-30 16:23:25 +02:00
|
|
|
|
|
|
|
{$IFNDEF PS_MINIVCL}
|
|
|
|
RegisterProperty('CTL3D', 'Boolean', iptrw);
|
2016-05-13 14:34:11 +02:00
|
|
|
RegisterProperty('DragCursor', 'LongInt', iptrw);
|
|
|
|
RegisterProperty('DragMode', 'TDragMode', iptrw);
|
|
|
|
RegisterProperty('ParentCtl3D', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('ParentShowHint', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('PopupMenu', 'TPopupMenu', iptrw);
|
|
|
|
RegisterProperty('OnDragDrop', 'TDragDropEvent', iptrw);
|
|
|
|
RegisterProperty('OnDragOver', 'TDragOverEvent', iptrw);
|
|
|
|
RegisterProperty('OnEndDrag', 'TEndDragEvent', iptrw);
|
|
|
|
RegisterProperty('OnMouseDown', 'TMouseEvent', iptrw);
|
|
|
|
RegisterProperty('OnMouseMove', 'TMouseMoveEvent', iptrw);
|
|
|
|
RegisterProperty('OnMouseUp', 'TMouseEvent', iptrw);
|
|
|
|
RegisterProperty('OnStartDrag', 'TStartDragEvent', iptrw);
|
2006-05-30 16:23:25 +02:00
|
|
|
{$ENDIF}
|
|
|
|
end;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure SIRegisterTHEADER(Cl: TPSPascalCompiler);
|
|
|
|
begin
|
2016-05-13 14:34:11 +02:00
|
|
|
with Cl.AddClassN(cl.FindClass('TCustomControl'), 'THeader') do
|
2006-05-30 16:23:25 +02:00
|
|
|
begin
|
2016-05-13 14:34:11 +02:00
|
|
|
RegisterProperty('SectionWidth', 'Integer Integer', iptrw);
|
|
|
|
RegisterProperty('AllowResize', 'Boolean', iptrw);
|
2018-12-29 14:53:14 +01:00
|
|
|
{$IFDEF DELPHI4UP}
|
|
|
|
RegisterProperty('Anchors', 'TAnchors', iptrw);
|
|
|
|
{$ENDIF}
|
2016-05-13 14:34:11 +02:00
|
|
|
RegisterProperty('BorderStyle', 'TBorderStyle', iptrw);
|
|
|
|
RegisterProperty('Font', 'TFont', iptrw);
|
|
|
|
RegisterProperty('ParentFont', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('Sections', 'TStrings', iptrw);
|
|
|
|
RegisterProperty('OnSizing', 'TSectionEvent', iptrw);
|
|
|
|
RegisterProperty('OnSized', 'TSectionEvent', iptrw);
|
2006-05-30 16:23:25 +02:00
|
|
|
|
|
|
|
{$IFNDEF PS_MINIVCL}
|
2016-05-13 14:34:11 +02:00
|
|
|
RegisterProperty('ParentShowHint', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('PopupMenu', 'TPopupMenu', iptrw);
|
2006-05-30 16:23:25 +02:00
|
|
|
{$ENDIF}
|
|
|
|
end;
|
|
|
|
end;
|
|
|
|
{$ENDIF}
|
|
|
|
|
|
|
|
procedure SIRegisterTCUSTOMRADIOGROUP(Cl: TPSPascalCompiler);
|
|
|
|
begin
|
2016-05-13 14:34:11 +02:00
|
|
|
Cl.AddClassN(cl.FindClass('TCustomGroupBox'), 'TCustomRadioGroup');
|
2006-05-30 16:23:25 +02:00
|
|
|
end;
|
|
|
|
|
|
|
|
procedure SIRegisterTRADIOGROUP(Cl: TPSPascalCompiler);
|
|
|
|
begin
|
2016-05-13 14:34:11 +02:00
|
|
|
with Cl.AddClassN(cl.FindClass('TCustomRadioGroup'), 'TRadioGroup') do
|
2006-05-30 16:23:25 +02:00
|
|
|
begin
|
2018-12-29 14:53:14 +01:00
|
|
|
{$IFDEF DELPHI4UP}
|
|
|
|
RegisterProperty('Anchors', 'TAnchors', iptrw);
|
|
|
|
{$ENDIF}
|
2016-05-13 14:34:11 +02:00
|
|
|
RegisterProperty('Caption', 'string', iptrw);
|
|
|
|
RegisterProperty('Color', 'TColor', iptrw);
|
|
|
|
RegisterProperty('Columns', 'Integer', iptrw);
|
|
|
|
RegisterProperty('Font', 'TFont', iptrw);
|
|
|
|
RegisterProperty('ItemIndex', 'Integer', iptrw);
|
|
|
|
RegisterProperty('Items', 'TStrings', iptrw);
|
|
|
|
RegisterProperty('ParentColor', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('ParentFont', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('OnClick', 'TNotifyEvent', iptrw);
|
|
|
|
RegisterProperty('OnEnter', 'TNotifyEvent', iptrw);
|
|
|
|
RegisterProperty('OnExit', 'TNotifyEvent', iptrw);
|
2006-05-30 16:23:25 +02:00
|
|
|
|
|
|
|
{$IFNDEF PS_MINIVCL}
|
|
|
|
RegisterProperty('CTL3D', 'Boolean', iptrw);
|
2016-05-13 14:34:11 +02:00
|
|
|
RegisterProperty('DragCursor', 'LongInt', iptrw);
|
|
|
|
RegisterProperty('DragMode', 'TDragMode', iptrw);
|
|
|
|
RegisterProperty('ParentCtl3D', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('ParentShowHint', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('PopupMenu', 'TPopupMenu', iptrw);
|
|
|
|
RegisterProperty('OnDragDrop', 'TDragDropEvent', iptrw);
|
|
|
|
RegisterProperty('OnDragOver', 'TDragOverEvent', iptrw);
|
|
|
|
RegisterProperty('OnEndDrag', 'TEndDragEvent', iptrw);
|
|
|
|
RegisterProperty('OnStartDrag', 'TStartDragEvent', iptrw);
|
2006-05-30 16:23:25 +02:00
|
|
|
{$ENDIF}
|
|
|
|
end;
|
|
|
|
end;
|
|
|
|
|
2024-05-10 14:35:33 +02:00
|
|
|
{$IFDEF DELPHI14UP}
|
|
|
|
|
|
|
|
procedure SIRegisterTCUSTOMLINKLABEL(Cl: TPSPascalCompiler);
|
|
|
|
begin
|
|
|
|
with Cl.AddClassN(cl.FindClass('TWinControl'), 'TCustomLinkLabel') do
|
|
|
|
begin
|
|
|
|
RegisterProperty('Alignment', 'TAlignment', iptrw); //actual type: taLeftJustify..taRightJustify
|
|
|
|
RegisterProperty('AutoSize', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('UseVisualStyle', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('OnLinkClick', 'TSysLinkEvent', iptrw);
|
|
|
|
end;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure SIRegisterTLINKLABEL(Cl: TPSPascalCompiler);
|
|
|
|
begin
|
|
|
|
with Cl.AddClassN(cl.FindClass('TCustomLinkLabel'), 'TLinkLabel') do
|
|
|
|
begin
|
|
|
|
RegisterProperty('Anchors', 'TAnchors', iptrw);
|
|
|
|
RegisterProperty('Caption', 'string', iptrw);
|
|
|
|
RegisterProperty('Color', 'TColor', iptrw);
|
|
|
|
RegisterProperty('Font', 'TFont', iptrw);
|
|
|
|
RegisterProperty('ParentColor', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('ParentFont', 'Boolean', iptrw);
|
|
|
|
|
|
|
|
{$IFNDEF PS_MINIVCL}
|
|
|
|
RegisterProperty('DragCursor', 'LongInt', iptrw);
|
|
|
|
RegisterProperty('DragMode', 'TDragMode', iptrw);
|
|
|
|
RegisterProperty('ParentShowHint', 'Boolean', iptrw);
|
|
|
|
RegisterProperty('OnClick', 'TNotifyEvent', iptrw);
|
|
|
|
RegisterProperty('OnDragDrop', 'TDragDropEvent', iptrw);
|
|
|
|
RegisterProperty('OnDragOver', 'TDragOverEvent', iptrw);
|
|
|
|
RegisterProperty('OnEndDrag', 'TEndDragEvent', iptrw);
|
|
|
|
RegisterProperty('OnStartDrag', 'TStartDragEvent', iptrw);
|
|
|
|
{$ENDIF}
|
|
|
|
end;
|
|
|
|
end;
|
|
|
|
|
|
|
|
{$ENDIF}
|
|
|
|
|
2006-05-30 16:23:25 +02:00
|
|
|
procedure SIRegister_ExtCtrls_TypesAndConsts(cl: TPSPascalCompiler);
|
|
|
|
begin
|
|
|
|
cl.AddTypeS('TShapeType', '(stRectangle, stSquare, stRoundRect, stRoundSquare, stEllipse, stCircle)');
|
|
|
|
cl.AddTypeS('TBevelStyle', '(bsLowered, bsRaised)');
|
|
|
|
cl.AddTypeS('TBevelShape', '(bsBox, bsFrame, bsTopLine, bsBottomLine, bsLeftLine, bsRightLine,bsSpacer)');
|
|
|
|
cl.AddTypeS('TPanelBevel', '(bvNone, bvLowered, bvRaised,bvSpace)');
|
2016-05-13 14:34:11 +02:00
|
|
|
cl.AddTypeS('TBevelWidth', 'LongInt');
|
|
|
|
cl.AddTypeS('TBorderWidth', 'LongInt');
|
2006-05-30 16:23:25 +02:00
|
|
|
cl.AddTypeS('TSectionEvent', 'procedure(Sender: TObject; ASection, AWidth: Integer)');
|
2024-05-10 14:35:33 +02:00
|
|
|
{$IFDEF DELPHI14UP}
|
|
|
|
cl.AddTypeS('TSysLinkType', '(sltURL, sltID)');
|
|
|
|
cl.AddTypeS('TSysLinkEvent', 'procedure(Sender: TObject; const Link: string; LinkType: TSysLinkType)');
|
|
|
|
{$ENDIF}
|
2006-05-30 16:23:25 +02:00
|
|
|
end;
|
|
|
|
|
|
|
|
procedure SIRegister_ExtCtrls(cl: TPSPascalCompiler);
|
|
|
|
begin
|
|
|
|
SIRegister_ExtCtrls_TypesAndConsts(cl);
|
|
|
|
|
|
|
|
{$IFNDEF PS_MINIVCL}
|
|
|
|
SIRegisterTSHAPE(Cl);
|
|
|
|
SIRegisterTIMAGE(Cl);
|
|
|
|
SIRegisterTPAINTBOX(Cl);
|
|
|
|
{$ENDIF}
|
|
|
|
SIRegisterTBEVEL(Cl);
|
|
|
|
{$IFNDEF PS_MINIVCL}
|
|
|
|
SIRegisterTTIMER(Cl);
|
|
|
|
{$ENDIF}
|
|
|
|
SIRegisterTCUSTOMPANEL(Cl);
|
|
|
|
SIRegisterTPANEL(Cl);
|
|
|
|
{$IFNDEF PS_MINIVCL}
|
|
|
|
{$IFNDEF CLX}
|
|
|
|
SIRegisterTPAGE(Cl);
|
|
|
|
SIRegisterTNOTEBOOK(Cl);
|
|
|
|
SIRegisterTHEADER(Cl);
|
|
|
|
{$ENDIF}
|
|
|
|
SIRegisterTCUSTOMRADIOGROUP(Cl);
|
|
|
|
SIRegisterTRADIOGROUP(Cl);
|
|
|
|
{$ENDIF}
|
2024-05-10 14:35:33 +02:00
|
|
|
{$IFDEF DELPHI14UP}
|
|
|
|
SIRegisterTCUSTOMLINKLABEL(Cl);
|
|
|
|
SIRegisterTLINKLABEL(Cl);
|
|
|
|
{$ENDIF}
|
2006-05-30 16:23:25 +02:00
|
|
|
end;
|
|
|
|
|
|
|
|
end.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|