📄 jvdyncontrolenginejvcldb.pas
字号:
procedure TJvDynControlJVCLDBDirectoryEdit.ControlSetDefaultProperties;
begin
Self.Caption := ' ';
end;
procedure TJvDynControlJVCLDBDirectoryEdit.ControlSetReadOnly(Value: Boolean);
begin
FEditControl.ReadOnly := Value;
FButton.Enabled := not Value;
end;
procedure TJvDynControlJVCLDBDirectoryEdit.ControlSetCaption(const Value: string);
begin
end;
procedure TJvDynControlJVCLDBDirectoryEdit.ControlSetTabOrder(Value: Integer);
begin
TabOrder := Value;
end;
procedure TJvDynControlJVCLDBDirectoryEdit.ControlSetHint(const Value: string);
begin
Hint := Value;
end;
procedure TJvDynControlJVCLDBDirectoryEdit.ControlSetOnEnter(Value: TNotifyEvent);
begin
FEditControl.OnEnter := Value;
end;
procedure TJvDynControlJVCLDBDirectoryEdit.ControlSetOnExit(Value: TNotifyEvent);
begin
FEditControl.OnExit := Value;
end;
procedure TJvDynControlJVCLDBDirectoryEdit.ControlSetOnChange(Value: TNotifyEvent);
begin
FEditControl.OnChange := Value;
end;
procedure TJvDynControlJVCLDBDirectoryEdit.ControlSetOnClick(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlJVCLDBDirectoryEdit.ControlSetValue(Value: Variant);
begin
FEditControl.Text := Value;
end;
function TJvDynControlJVCLDBDirectoryEdit.ControlGetValue: Variant;
begin
Result := FEditControl.Text;
end;
procedure TJvDynControlJVCLDBDirectoryEdit.ControlSetInitialDir(const Value: string);
begin
FInitialDir := Value;
end;
procedure TJvDynControlJVCLDBDirectoryEdit.ControlSetDialogTitle(const Value: string);
begin
FDialogTitle := Value;
end;
{$IFDEF VCL}
procedure TJvDynControlJVCLDBDirectoryEdit.ControlSetDialogOptions(Value: TSelectDirOpts);
begin
FDialogOptions := Value;
end;
{$ENDIF VCL}
procedure TJvDynControlJVCLDBDirectoryEdit.ControlSetDataSource(Value: TDataSource);
begin
FEditControl.DataSource := Value;
end;
function TJvDynControlJVCLDBDirectoryEdit.ControlGetDataSource: TDataSource;
begin
Result := FEditControl.DataSource;
end;
procedure TJvDynControlJVCLDBDirectoryEdit.ControlSetDataField(const Value: string);
begin
FEditControl.DataField := Value;
end;
function TJvDynControlJVCLDBDirectoryEdit.ControlGetDataField: string;
begin
Result := FEditControl.DataField;
end;
//=== { TJvDynControlJVCLDBCheckBox } ========================================
procedure TJvDynControlJVCLDBCheckBox.ControlSetDefaultProperties;
begin
end;
procedure TJvDynControlJVCLDBCheckBox.ControlSetCaption(const Value: string);
begin
Caption := Value;
end;
procedure TJvDynControlJVCLDBCheckBox.ControlSetTabOrder(Value: Integer);
begin
TabOrder := Value;
end;
procedure TJvDynControlJVCLDBCheckBox.ControlSetHint(const Value: string);
begin
Hint := Value;
end;
procedure TJvDynControlJVCLDBCheckBox.ControlSetOnEnter(Value: TNotifyEvent);
begin
OnEnter := Value;
end;
procedure TJvDynControlJVCLDBCheckBox.ControlSetOnExit(Value: TNotifyEvent);
begin
OnExit := Value;
end;
procedure TJvDynControlJVCLDBCheckBox.ControlSetOnChange(Value: TNotifyEvent);
begin
OnClick := Value;
end;
procedure TJvDynControlJVCLDBCheckBox.ControlSetOnClick(Value: TNotifyEvent);
begin
OnClick := Value;
end;
procedure TJvDynControlJVCLDBCheckBox.ControlSetValue(Value: Variant);
begin
Checked := JvDynControlVariantToBoolean(Value);
end;
function TJvDynControlJVCLDBCheckBox.ControlGetValue: Variant;
begin
Result := Checked;
end;
procedure TJvDynControlJVCLDBCheckBox.ControlSetDataSource(Value: TDataSource);
begin
DataSource := Value;
end;
function TJvDynControlJVCLDBCheckBox.ControlGetDataSource: TDataSource;
begin
Result := DataSource;
end;
procedure TJvDynControlJVCLDBCheckBox.ControlSetDataField(const Value: string);
begin
DataField := Value;
end;
function TJvDynControlJVCLDBCheckBox.ControlGetDataField: string;
begin
Result := DataField;
end;
procedure TJvDynControlJVCLDBCheckBox.ControlSetValueChecked(Value: Variant);
begin
ValueChecked := Value;
end;
procedure TJvDynControlJVCLDBCheckBox.ControlSetValueUnChecked(Value: Variant);
begin
ValueUnChecked := Value;
end;
//=== { TJvDynControlJVCLDBMemo } ============================================
procedure TJvDynControlJVCLDBMemo.ControlSetDefaultProperties;
begin
end;
procedure TJvDynControlJVCLDBMemo.ControlSetReadOnly(Value: Boolean);
begin
ReadOnly := Value;
end;
procedure TJvDynControlJVCLDBMemo.ControlSetCaption(const Value: string);
begin
end;
procedure TJvDynControlJVCLDBMemo.ControlSetTabOrder(Value: Integer);
begin
TabOrder := Value;
end;
procedure TJvDynControlJVCLDBMemo.ControlSetHint(const Value: string);
begin
Hint := Value;
end;
procedure TJvDynControlJVCLDBMemo.ControlSetOnEnter(Value: TNotifyEvent);
begin
OnEnter := Value;
end;
procedure TJvDynControlJVCLDBMemo.ControlSetOnExit(Value: TNotifyEvent);
begin
OnExit := Value;
end;
procedure TJvDynControlJVCLDBMemo.ControlSetOnChange(Value: TNotifyEvent);
begin
OnChange := Value;
end;
procedure TJvDynControlJVCLDBMemo.ControlSetOnClick(Value: TNotifyEvent);
begin
OnClick := Value;
end;
procedure TJvDynControlJVCLDBMemo.ControlSetValue(Value: Variant);
begin
Text := Value;
end;
function TJvDynControlJVCLDBMemo.ControlGetValue: Variant;
begin
Result := Text;
end;
procedure TJvDynControlJVCLDBMemo.ControlSetSorted(Value: Boolean);
begin
end;
procedure TJvDynControlJVCLDBMemo.ControlSetItems(Value: TStrings);
begin
Lines.Assign(Value);
end;
function TJvDynControlJVCLDBMemo.ControlGetItems: TStrings;
begin
Result := Lines;
end;
procedure TJvDynControlJVCLDBMemo.ControlSetWantTabs(Value: Boolean);
begin
WantTabs := Value;
end;
procedure TJvDynControlJVCLDBMemo.ControlSetWantReturns(Value: Boolean);
begin
WantReturns := Value;
end;
procedure TJvDynControlJVCLDBMemo.ControlSetWordWrap(Value: Boolean);
begin
WordWrap := Value;
end;
procedure TJvDynControlJVCLDBMemo.ControlSetScrollBars(Value: TScrollStyle);
begin
ScrollBars := Value;
end;
procedure TJvDynControlJVCLDBMemo.ControlSetDataSource(Value: TDataSource);
begin
DataSource := Value;
end;
function TJvDynControlJVCLDBMemo.ControlGetDataSource: TDataSource;
begin
Result := DataSource;
end;
procedure TJvDynControlJVCLDBMemo.ControlSetDataField(const Value: string);
begin
DataField := Value;
end;
function TJvDynControlJVCLDBMemo.ControlGetDataField: string;
begin
Result := DataField;
end;
//=== { TJvDynControlJVCLDBDateEdit } ========================================
procedure TJvDynControlJVCLDBDateEdit.ControlSetDefaultProperties;
begin
DateFormat := dfShort;
DateMode := dmComboBox;
Kind := dtkDate;
end;
procedure TJvDynControlJVCLDBDateEdit.ControlSetCaption(const Value: string);
begin
end;
procedure TJvDynControlJVCLDBDateEdit.ControlSetTabOrder(Value: Integer);
begin
TabOrder := Value;
end;
procedure TJvDynControlJVCLDBDateEdit.ControlSetHint(const Value: string);
begin
Hint := Value;
end;
procedure TJvDynControlJVCLDBDateEdit.ControlSetOnEnter(Value: TNotifyEvent);
begin
OnEnter := Value;
end;
procedure TJvDynControlJVCLDBDateEdit.ControlSetOnExit(Value: TNotifyEvent);
begin
OnExit := Value;
end;
procedure TJvDynControlJVCLDBDateEdit.ControlSetOnChange(Value: TNotifyEvent);
begin
OnChange := Value;
end;
procedure TJvDynControlJVCLDBDateEdit.ControlSetOnClick(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlJVCLDBDateEdit.ControlSetValue(Value: Variant);
begin
Text := Value;
end;
function TJvDynControlJVCLDBDateEdit.ControlGetValue: Variant;
begin
Result := Text;
end;
// IJvDynControlDate
procedure TJvDynControlJVCLDBDateEdit.ControlSetMinDate(Value: TDateTime);
begin
MinDate := Value;
end;
procedure TJvDynControlJVCLDBDateEdit.ControlSetMaxDate(Value: TDateTime);
begin
MaxDate := Value;
end;
procedure TJvDynControlJVCLDBDateEdit.ControlSetFormat(const Value: string);
begin
{$IFDEF COMPILER6_UP}
Format := Value;
{$ENDIF COMPILER6_UP}
end;
procedure TJvDynControlJVCLDBDateEdit.ControlSetDataSource(Value: TDataSource);
begin
DataSource := Value;
end;
function TJvDynControlJVCLDBDateEdit.ControlGetDataSource: TDataSource;
begin
Result := DataSource;
end;
procedure TJvDynControlJVCLDBDateEdit.ControlSetDataField(const Value: string);
begin
DataField := Value;
end;
function TJvDynControlJVCLDBDateEdit.ControlGetDataField: string;
begin
Result := DataField;
end;
//=== { TJvDynControlJVCLDBTimeEdit } ========================================
procedure TJvDynControlJVCLDBTimeEdit.ControlSetDefaultProperties;
begin
DateFormat := dfShort;
Kind := dtkTime;
DateMode := dmUpDown;
end;
procedure TJvDynControlJVCLDBTimeEdit.ControlSetCaption(const Value: string);
begin
end;
procedure TJvDynControlJVCLDBTimeEdit.ControlSetTabOrder(Value: Integer);
begin
TabOrder := Value;
end;
procedure TJvDynControlJVCLDBTimeEdit.ControlSetHint(const Value: string);
begin
Hint := Value;
end;
procedure TJvDynControlJVCLDBTimeEdit.ControlSetOnEnter(Value: TNotifyEvent);
begin
OnEnter := Value;
end;
procedure TJvDynControlJVCLDBTimeEdit.ControlSetOnExit(Value: TNotifyEvent);
begin
OnExit := Value;
end;
procedure TJvDynControlJVCLDBTimeEdit.ControlSetOnChange(Value: TNotifyEvent);
begin
OnChange := Value;
end;
procedure TJvDynControlJVCLDBTimeEdit.ControlSetOnClick(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlJVCLDBTimeEdit.ControlSetValue(Value: Variant);
begin
Text := Value;
end;
function TJvDynControlJVCLDBTimeEdit.ControlGetValue: Variant;
begin
Result := Text;
end;
procedure TJvDynControlJVCLDBTimeEdit.ControlSetFormat(const Value: string);
begin
{$IFDEF COMPILER6_UP}
Format := Value;
{$ENDIF COMPILER6_UP}
end;
procedure TJvDynControlJVCLDBTimeEdit.ControlSetDataSource(Value: TDataSource);
begin
DataSource := Value;
end;
function TJvDynControlJVCLDBTimeEdit.ControlGetDataSource: TDataSource;
begin
Result := DataSource;
end;
procedure TJvDynControlJVCLDBTimeEdit.ControlSetDataField(const Value: string);
begin
DataField := Value;
end;
function TJvDynControlJVCLDBTimeEdit.ControlGetDataField: string;
begin
Result := DataField;
end;
//=== { TJvDynControlJVCLDBRadioGroup } ======================================
procedure TJvDynControlJVCLDBRadioGroup.ControlSetDefaultProperties;
begin
end;
procedure TJvDynControlJVCLDBRadioGroup.ControlSetCaption(const Value: string);
begin
Caption := Value;
end;
procedure TJvDynControlJVCLDBRadioGroup.ControlSetTabOrder(Value: Integer);
begin
TabOrder := Value;
end;
procedure TJvDynControlJVCLDBRadioGroup.ControlSetHint(const Value: string);
begin
Hint := Value;
end;
procedure TJvDynControlJVCLDBRadioGroup.ControlSetOnEnter(Value: TNotifyEvent);
begin
OnEnter := Value;
end;
procedure TJvDynControlJVCLDBRadioGroup.ControlSetOnExit(Value: TNotifyEvent);
begin
OnExit := Value;
end;
procedure TJvDynControlJVCLDBRadioGroup.ControlSetOnChange(Value: TNotifyEvent);
begin
OnClick := Value;
end;
procedure TJvDynControlJVCLDBRadioGroup.ControlSetOnClick(Value: TNotifyEvent);
begin
OnClick := Value;
end;
procedure TJvDynControlJVCLDBRadioGroup.ControlSetValue(Value: Variant);
begin
if VarIsInt(Value) then
ItemIndex := Value
else
ItemIndex := Items.IndexOf(Value);
end;
function TJvDynControlJVCLDBRadioGroup.ControlGetValue: Variant;
begin
Result := ItemIndex;
end;
procedure TJvDynControlJVCLDBRadioGroup.ControlSetSorted(Value: Boolean);
begin
end;
procedure TJvDynControlJVCLDBRadioGroup.ControlSetItems(Value: TStrings);
begin
Items.Assign(Value);
end;
function TJvDynControlJVCLDBRadioGroup.ControlGetItems: TStrings;
begin
Result := Items;
end;
procedure TJvDynControlJVCLDBRadioGroup.ControlSetColumns(Value: Integer);
begin
Columns := Value;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -