📄 jvqdyncontrolenginejvcl.pas
字号:
procedure ControlSetGlyph(Value: TBitmap);
procedure ControlSetNumGlyphs(Value: Integer);
procedure ControlSetLayout(Value: TButtonLayout);
end;
function DynControlEngineJVCL: TJvDynControlEngine;
implementation
uses
SysUtils,
Variants,
JvQDynControlEngineVCL;
var
IntDynControlEngineJVCL: TJvDynControlEngine = nil;
//=== TJvDynControlJVCLMaskEdit ==============================================
procedure TJvDynControlJVCLMaskEdit.ControlSetDefaultProperties;
begin
end;
procedure TJvDynControlJVCLMaskEdit.ControlSetReadOnly(Value: Boolean);
begin
ReadOnly := Value;
end;
procedure TJvDynControlJVCLMaskEdit.ControlSetCaption(Value: string);
begin
end;
procedure TJvDynControlJVCLMaskEdit.ControlSetTabOrder(Value: Integer);
begin
TabOrder := Value;
end;
procedure TJvDynControlJVCLMaskEdit.ControlSetOnEnter(Value: TNotifyEvent);
begin
OnEnter := Value;
end;
procedure TJvDynControlJVCLMaskEdit.ControlSetOnExit(Value: TNotifyEvent);
begin
OnExit := Value;
end;
procedure TJvDynControlJVCLMaskEdit.ControlSetOnChange(Value: TNotifyEvent);
begin
OnChange := Value;
end;
procedure TJvDynControlJVCLMaskEdit.ControlSetOnClick(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlJVCLMaskEdit.ControlSetValue(Value: Variant);
begin
Text := Value;
end;
function TJvDynControlJVCLMaskEdit.ControlGetValue: Variant;
begin
Result := Text;
end;
procedure TJvDynControlJVCLMaskEdit.ControlSetPasswordChar(Value: Char);
begin
PasswordChar := Value;
end;
procedure TJvDynControlJVCLMaskEdit.ControlSetEditMask(Value: string);
begin
EditMask := Value;
end;
//=== TJvDynControlJVCLButtonEdit ================================================
constructor TJvDynControlJVCLButtonEdit.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FEditControl := TJvMaskEdit.Create(AOwner);
FEditControl.Parent := Self;
FButton := TJvBitBtn.Create(AOwner);
FButton.Parent := Self;
FButton.Align := alRight;
FButton.Caption := '...';
Height := FEditControl.Height;
FButton.Width := Height;
FEditControl.Align := alClient;
BevelInner := bvNone;
BevelOuter := bvNone;
end;
destructor TJvDynControlJVCLButtonEdit.Destroy;
begin
FreeAndNil(FEditControl);
FreeAndNil(FButton);
inherited Destroy;
end;
procedure TJvDynControlJVCLButtonEdit.ControlSetDefaultProperties;
begin
end;
procedure TJvDynControlJVCLButtonEdit.ControlSetReadOnly(Value: boolean);
begin
FEditControl.ReadOnly := Value;
end;
procedure TJvDynControlJVCLButtonEdit.ControlSetCaption(Value: string);
begin
end;
procedure TJvDynControlJVCLButtonEdit.ControlSetTabOrder(Value: integer);
begin
TabOrder := Value;
end;
procedure TJvDynControlJVCLButtonEdit.ControlSetOnEnter(Value: TNotifyEvent);
begin
OnEnter := Value;
end;
procedure TJvDynControlJVCLButtonEdit.ControlSetOnExit(Value: TNotifyEvent);
begin
OnExit := Value;
end;
procedure TJvDynControlJVCLButtonEdit.ControlSetOnChange(Value: TNotifyEvent);
begin
FEditControl.OnChange := Value;
end;
procedure TJvDynControlJVCLButtonEdit.ControlSetOnClick(Value: TNotifyEvent);
begin
FEditControl.OnClick := Value;
end;
procedure TJvDynControlJVCLButtonEdit.ControlSetValue(Value: variant);
begin
FEditControl.Text := Value;
end;
function TJvDynControlJVCLButtonEdit.ControlGetValue: variant;
begin
Result := FEditControl.Text;
end;
procedure TJvDynControlJVCLButtonEdit.ControlSetPasswordChar(Value: Char);
begin
FEditControl.PasswordChar := Value;
end;
procedure TJvDynControlJVCLButtonEdit.ControlSetEditMask(Value: string);
begin
FEditControl.EditMask := Value;
end;
procedure TJvDynControlJVCLButtonEdit.ControlSetOnButtonClick(Value: TNotifyEvent);
begin
FButton.OnClick:= Value;
end;
procedure TJvDynControlJVCLButtonEdit.ControlSetButtonCaption(Value: string);
begin
FButton.Caption := Value;
end;
procedure TJvDynControlJVCLButtonEdit.ControlSetGlyph(Value: TBitmap);
begin
FButton.Glyph.Assign(Value);
end;
procedure TJvDynControlJVCLButtonEdit.ControlSetNumGlyphs(Value: integer);
begin
FButton.NumGlyphs := Value;
end;
procedure TJvDynControlJVCLButtonEdit.ControlSetLayout(Value: TButtonLayout);
begin
FButton.Layout := Value;
end;
//=== TJvDynControlJVCLCalcEdit ==============================================
procedure TJvDynControlJVCLCalcEdit.ControlSetDefaultProperties;
begin
end;
procedure TJvDynControlJVCLCalcEdit.ControlSetReadOnly(Value: Boolean);
begin
ReadOnly := Value;
end;
procedure TJvDynControlJVCLCalcEdit.ControlSetCaption(Value: string);
begin
end;
procedure TJvDynControlJVCLCalcEdit.ControlSetTabOrder(Value: Integer);
begin
TabOrder := Value;
end;
procedure TJvDynControlJVCLCalcEdit.ControlSetOnEnter(Value: TNotifyEvent);
begin
OnEnter := Value;
end;
procedure TJvDynControlJVCLCalcEdit.ControlSetOnExit(Value: TNotifyEvent);
begin
OnExit := Value;
end;
procedure TJvDynControlJVCLCalcEdit.ControlSetOnChange(Value: TNotifyEvent);
begin
OnChange := Value;
end;
procedure TJvDynControlJVCLCalcEdit.ControlSetOnClick(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlJVCLCalcEdit.ControlSetValue(Value: Variant);
begin
Text := Value;
end;
function TJvDynControlJVCLCalcEdit.ControlGetValue: Variant;
begin
Result := Text;
end;
//=== TJvDynControlJVCLSpinEdit ==============================================
procedure TJvDynControlJVCLSpinEdit.ControlSetDefaultProperties;
begin
ButtonKind := bkDiagonal;
end;
procedure TJvDynControlJVCLSpinEdit.ControlSetReadOnly(Value: Boolean);
begin
ReadOnly := Value;
end;
procedure TJvDynControlJVCLSpinEdit.ControlSetCaption(Value: string);
begin
end;
procedure TJvDynControlJVCLSpinEdit.ControlSetTabOrder(Value: Integer);
begin
TabOrder := Value;
end;
procedure TJvDynControlJVCLSpinEdit.ControlSetOnEnter(Value: TNotifyEvent);
begin
OnEnter := Value;
end;
procedure TJvDynControlJVCLSpinEdit.ControlSetOnExit(Value: TNotifyEvent);
begin
OnExit := Value;
end;
procedure TJvDynControlJVCLSpinEdit.ControlSetOnChange(Value: TNotifyEvent);
begin
OnChange := Value;
end;
procedure TJvDynControlJVCLSpinEdit.ControlSetOnClick(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlJVCLSpinEdit.ControlSetValue(Value: Variant);
begin
Text := Value;
end;
function TJvDynControlJVCLSpinEdit.ControlGetValue: Variant;
begin
Result := Text;
end;
procedure TJvDynControlJVCLSpinEdit.ControlSetIncrement(Value: Integer);
begin
Increment := Value;
end;
procedure TJvDynControlJVCLSpinEdit.ControlSetMinValue(Value: double);
begin
MinValue := Value;
CheckMinValue := (MaxValue <> 0) and (MinValue <> 0);
CheckMaxValue := CheckMinValue;
end;
procedure TJvDynControlJVCLSpinEdit.ControlSetMaxValue(Value: double);
begin
MaxValue := Value;
CheckMinValue := (MaxValue <> 0) and (MinValue <> 0);
CheckMaxValue := CheckMinValue;
end;
procedure TJvDynControlJVCLSpinEdit.ControlSetUseForInteger(Value: Boolean);
begin
if Value then
{$IFDEF BCB}
ValueType := TValueType(vtInteger)
{$ELSE}
ValueType := vtInteger
{$ENDIF BCB}
else
ValueType := vtFloat;
end;
//=== TJvDynControlJVCLFileNameEdit ==========================================
procedure TJvDynControlJVCLFileNameEdit.ControlSetDefaultProperties;
begin
end;
procedure TJvDynControlJVCLFileNameEdit.ControlSetReadOnly(Value: Boolean);
begin
ReadOnly := Value;
end;
procedure TJvDynControlJVCLFileNameEdit.ControlSetCaption(Value: string);
begin
end;
procedure TJvDynControlJVCLFileNameEdit.ControlSetTabOrder(Value: Integer);
begin
TabOrder := Value;
end;
procedure TJvDynControlJVCLFileNameEdit.ControlSetOnEnter(Value: TNotifyEvent);
begin
OnEnter := Value;
end;
procedure TJvDynControlJVCLFileNameEdit.ControlSetOnExit(Value: TNotifyEvent);
begin
OnExit := Value;
end;
procedure TJvDynControlJVCLFileNameEdit.ControlSetOnChange(Value: TNotifyEvent);
begin
OnChange := Value;
end;
procedure TJvDynControlJVCLFileNameEdit.ControlSetOnClick(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlJVCLFileNameEdit.ControlSetValue(Value: Variant);
begin
Text := Value;
end;
function TJvDynControlJVCLFileNameEdit.ControlGetValue: Variant;
begin
Result := Text;
end;
procedure TJvDynControlJVCLFileNameEdit.ControlSetInitialDir(Value: string);
begin
InitialDir := Value;
end;
procedure TJvDynControlJVCLFileNameEdit.ControlSetDefaultExt(Value: string);
begin
DefaultExt := Value;
end;
procedure TJvDynControlJVCLFileNameEdit.ControlSetDialogTitle(Value: string);
begin
DialogTitle := Value;
end;
procedure TJvDynControlJVCLFileNameEdit.ControlSetDialogOptions(Value: TOpenOptions);
begin
DialogOptions := Value;
end;
procedure TJvDynControlJVCLFileNameEdit.ControlSetFilter(Value: string);
begin
Filter := Value;
end;
procedure TJvDynControlJVCLFileNameEdit.ControlSetFilterIndex(Value: Integer);
begin
FilterIndex := Value;
end;
procedure TJvDynControlJVCLFileNameEdit.ControlSetDialogKind(Value: TJvDynControlFileNameDialogKind);
begin
case Value of
jdkOpen:
DialogKind := dkOpen;
jdkOpenPicture:
DialogKind := dkOpenPicture;
jdkSave:
DialogKind := dkSave;
jdkSavePicture:
DialogKind := dkSavePicture;
end;
end;
//=== TJvDynControlJVCLDirectoryEdit =========================================
procedure TJvDynControlJVCLDirectoryEdit.ControlSetDefaultProperties;
begin
DialogKind := dkWin32;
end;
procedure TJvDynControlJVCLDirectoryEdit.ControlSetReadOnly(Value: Boolean);
begin
ReadOnly := Value;
end;
procedure TJvDynControlJVCLDirectoryEdit.ControlSetCaption(Value: string);
begin
end;
procedure TJvDynControlJVCLDirectoryEdit.ControlSetTabOrder(Value: Integer);
begin
TabOrder := Value;
end;
procedure TJvDynControlJVCLDirectoryEdit.ControlSetOnEnter(Value: TNotifyEvent);
begin
OnEnter := Value;
end;
procedure TJvDynControlJVCLDirectoryEdit.ControlSetOnExit(Value: TNotifyEvent);
begin
OnExit := Value;
end;
procedure TJvDynControlJVCLDirectoryEdit.ControlSetOnChange(Value: TNotifyEvent);
begin
OnChange := Value;
end;
procedure TJvDynControlJVCLDirectoryEdit.ControlSetOnClick(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlJVCLDirectoryEdit.ControlSetValue(Value: Variant);
begin
Text := Value;
end;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -