📄 jvdyncontrolenginedevexpcxdb.pas
字号:
end;
procedure TJvDynControlCxDBFileNameEdit.ControlSetCaption(const Value: string);
begin
end;
procedure TJvDynControlCxDBFileNameEdit.ControlSetTabOrder(Value: Integer);
begin
TabOrder := Value;
end;
procedure TJvDynControlCxDBFileNameEdit.ControlSetHint(const Value: string);
begin
Hint := Value;
end;
procedure TJvDynControlCxDBFileNameEdit.ControlSetOnEnter(Value: TNotifyEvent);
begin
OnEnter := Value;
end;
procedure TJvDynControlCxDBFileNameEdit.ControlSetOnExit(Value: TNotifyEvent);
begin
OnExit := Value;
end;
procedure TJvDynControlCxDBFileNameEdit.ControlSetOnChange(Value: TNotifyEvent);
begin
Properties.OnChange := Value;
end;
procedure TJvDynControlCxDBFileNameEdit.ControlSetOnClick(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlCxDBFileNameEdit.ControlSetValue(Value: Variant);
begin
Text := Value;
end;
function TJvDynControlCxDBFileNameEdit.ControlGetValue: Variant;
begin
Result := Text;
end;
// IJvDynControlFileName
procedure TJvDynControlCxDBFileNameEdit.ControlSetInitialDir(const Value: string);
begin
FInitialDir := Value;
end;
procedure TJvDynControlCxDBFileNameEdit.ControlSetDefaultExt(const Value: string);
begin
FDefaultExt := Value;
end;
procedure TJvDynControlCxDBFileNameEdit.ControlSetDialogTitle(const Value: string);
begin
FDialogTitle := Value;
end;
procedure TJvDynControlCxDBFileNameEdit.ControlSetDialogOptions(Value: TOpenOptions);
begin
FDialogOptions := Value;
end;
procedure TJvDynControlCxDBFileNameEdit.ControlSetFilter(const Value: string);
begin
FFilter := Value;
end;
procedure TJvDynControlCxDBFileNameEdit.ControlSetFilterIndex(Value: Integer);
begin
FFilterIndex := Value;
end;
procedure TJvDynControlCxDBFileNameEdit.ControlSetDialogKind(Value: TJvDynControlFileNameDialogKind);
begin
FDialogKind := Value;
end;
procedure TJvDynControlCxDBFileNameEdit.ControlSetDataSource(Value: TDataSource);
begin
Databinding.DataSource := Value;
end;
function TJvDynControlCxDBFileNameEdit.ControlGetDataSource: TDataSource;
begin
Result := Databinding.DataSource;
end;
procedure TJvDynControlCxDBFileNameEdit.ControlSetDataField(const Value: string);
begin
Databinding.DataField := Value;
end;
function TJvDynControlCxDBFileNameEdit.ControlGetDataField: string;
begin
Result := Databinding.DataField;
end;
procedure TJvDynControlCxDBFileNameEdit.ControlSetCxProperties(Value: TCxDynControlWrapper);
begin
Style.LookAndFeel.Assign(Value.LookAndFeel);
Style.StyleController := Value.StyleController;
end;
//=== { TJvDynControlCxDBDirectoryEdit } ====================================
constructor TJvDynControlCxDBDirectoryEdit.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TJvDynControlCxDBDirectoryEdit.Destroy;
begin
inherited Destroy;
end;
procedure TJvDynControlCxDBDirectoryEdit.DefaultOnButtonClick(Sender: TObject);
var
{$IFDEF VCL}
Opt: TSelectDirOpts;
Dir: string;
{$ENDIF VCL}
{$IFDEF VisualCLX}
Dir: WideString;
{$ENDIF VisualCLX}
begin
Dir := ControlGetValue;
if Dir = '' then
if FInitialDir <> '' then
Dir := FInitialDir
else
Dir := PathDelim;
if not DirectoryExists(Dir) then
Dir := PathDelim;
{$IFDEF VCL}
if SelectDirectory(Dir, Opt, HelpContext) then
{$ENDIF VCL}
{$IFDEF VisualCLX}
{$IFDEF MSWINDOWS}
if SelectDirectory('', '', Dir) then
{$ENDIF MSWINDOWS}
{$IFDEF UNIX}
if SelectDirectory('', '/', Dir, False) then
{$ENDIF UNIX}
{$ENDIF VisualCLX}
ControlSetValue(Dir);
if CanFocus then
SetFocus;
end;
procedure TJvDynControlCxDBDirectoryEdit.ControlSetDefaultProperties;
begin
Self.Caption := ' ';
end;
procedure TJvDynControlCxDBDirectoryEdit.ControlSetReadOnly(Value: Boolean);
begin
Properties.ReadOnly := Value;
end;
procedure TJvDynControlCxDBDirectoryEdit.ControlSetCaption(const Value: string);
begin
end;
procedure TJvDynControlCxDBDirectoryEdit.ControlSetTabOrder(Value: Integer);
begin
TabOrder := Value;
end;
procedure TJvDynControlCxDBDirectoryEdit.ControlSetHint(const Value: string);
begin
Hint := Value;
end;
procedure TJvDynControlCxDBDirectoryEdit.ControlSetOnEnter(Value: TNotifyEvent);
begin
OnEnter := Value;
end;
procedure TJvDynControlCxDBDirectoryEdit.ControlSetOnExit(Value: TNotifyEvent);
begin
OnExit := Value;
end;
procedure TJvDynControlCxDBDirectoryEdit.ControlSetOnChange(Value: TNotifyEvent);
begin
Properties.OnChange := Value;
end;
procedure TJvDynControlCxDBDirectoryEdit.ControlSetOnClick(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlCxDBDirectoryEdit.ControlSetValue(Value: Variant);
begin
Text := Value;
end;
function TJvDynControlCxDBDirectoryEdit.ControlGetValue: Variant;
begin
Result := Text;
end;
procedure TJvDynControlCxDBDirectoryEdit.ControlSetInitialDir(const Value: string);
begin
FInitialDir := Value;
end;
procedure TJvDynControlCxDBDirectoryEdit.ControlSetDialogTitle(const Value: string);
begin
FDialogTitle := Value;
end;
{$IFDEF VCL}
procedure TJvDynControlCxDBDirectoryEdit.ControlSetDialogOptions(Value: TSelectDirOpts);
begin
FDialogOptions := Value;
end;
{$ENDIF VCL}
procedure TJvDynControlCxDBDirectoryEdit.ControlSetDataSource(Value: TDataSource);
begin
Databinding.DataSource := Value;
end;
function TJvDynControlCxDBDirectoryEdit.ControlGetDataSource: TDataSource;
begin
Result := Databinding.DataSource;
end;
procedure TJvDynControlCxDBDirectoryEdit.ControlSetDataField(const Value: string);
begin
Databinding.DataField := Value;
end;
function TJvDynControlCxDBDirectoryEdit.ControlGetDataField: string;
begin
Result := Databinding.DataField;
end;
procedure TJvDynControlCxDBDirectoryEdit.ControlSetCxProperties(Value: TCxDynControlWrapper);
begin
Style.LookAndFeel.Assign(Value.LookAndFeel);
Style.StyleController := Value.StyleController;
end;
//=== { TJvDynControlCxDBCheckBox } ==========================================
procedure TJvDynControlCxDBCheckBox.ControlSetDefaultProperties;
begin
end;
procedure TJvDynControlCxDBCheckBox.ControlSetCaption(const Value: string);
begin
Caption := Value;
end;
procedure TJvDynControlCxDBCheckBox.ControlSetTabOrder(Value: Integer);
begin
TabOrder := Value;
end;
procedure TJvDynControlCxDBCheckBox.ControlSetHint(const Value: string);
begin
Hint := Value;
end;
procedure TJvDynControlCxDBCheckBox.ControlSetOnEnter(Value: TNotifyEvent);
begin
OnEnter := Value;
end;
procedure TJvDynControlCxDBCheckBox.ControlSetOnExit(Value: TNotifyEvent);
begin
OnExit := Value;
end;
procedure TJvDynControlCxDBCheckBox.ControlSetOnChange(Value: TNotifyEvent);
begin
OnClick := Value;
end;
procedure TJvDynControlCxDBCheckBox.ControlSetOnClick(Value: TNotifyEvent);
begin
OnClick := Value;
end;
procedure TJvDynControlCxDBCheckBox.ControlSetValue(Value: Variant);
begin
Checked := JvDynControlVariantToBoolean(Value);
end;
function TJvDynControlCxDBCheckBox.ControlGetValue: Variant;
begin
Result := Checked;
end;
procedure TJvDynControlCxDBCheckBox.ControlSetDataSource(Value: TDataSource);
begin
Databinding.DataSource := Value;
end;
function TJvDynControlCxDBCheckBox.ControlGetDataSource: TDataSource;
begin
Result := DataBinding.DataSource;
end;
procedure TJvDynControlCxDBCheckBox.ControlSetDataField(const Value: string);
begin
Databinding.DataField := Value;
end;
function TJvDynControlCxDBCheckBox.ControlGetDataField: string;
begin
Result := Databinding.DataField;
end;
procedure TJvDynControlCxDBCheckBox.ControlSetValueChecked(Value: Variant);
begin
Properties.ValueChecked := Value;
end;
procedure TJvDynControlCxDBCheckBox.ControlSetValueUnChecked(Value: Variant);
begin
Properties.ValueUnChecked := Value;
end;
procedure TJvDynControlCxDBCheckBox.ControlSetCxProperties(Value: TCxDynControlWrapper);
begin
Style.LookAndFeel.Assign(Value.LookAndFeel);
Style.StyleController := Value.StyleController;
end;
//=== { TJvDynControlCxDBMemo } ==============================================
procedure TJvDynControlCxDBMemo.ControlSetDefaultProperties;
begin
Properties.ScrollBars := ssBoth;
Properties.WantReturns := True;
Properties.WantTabs := True;
end;
procedure TJvDynControlCxDBMemo.ControlSetReadOnly(Value: Boolean);
begin
Properties.ReadOnly := Value;
end;
procedure TJvDynControlCxDBMemo.ControlSetCaption(const Value: string);
begin
end;
procedure TJvDynControlCxDBMemo.ControlSetTabOrder(Value: Integer);
begin
TabOrder := Value;
end;
procedure TJvDynControlCxDBMemo.ControlSetHint(const Value: string);
begin
Hint := Value;
end;
procedure TJvDynControlCxDBMemo.ControlSetOnEnter(Value: TNotifyEvent);
begin
OnEnter := Value;
end;
procedure TJvDynControlCxDBMemo.ControlSetOnExit(Value: TNotifyEvent);
begin
OnExit := Value;
end;
procedure TJvDynControlCxDBMemo.ControlSetOnChange(Value: TNotifyEvent);
begin
Properties.OnChange := Value;
end;
procedure TJvDynControlCxDBMemo.ControlSetOnClick(Value: TNotifyEvent);
begin
OnClick := Value;
end;
procedure TJvDynControlCxDBMemo.ControlSetValue(Value: Variant);
begin
Text := Value;
end;
function TJvDynControlCxDBMemo.ControlGetValue: Variant;
begin
Result := Text;
end;
procedure TJvDynControlCxDBMemo.ControlSetSorted(Value: Boolean);
begin
end;
procedure TJvDynControlCxDBMemo.ControlSetItems(Value: TStrings);
begin
Lines.Assign(Value);
end;
function TJvDynControlCxDBMemo.ControlGetItems: TStrings;
begin
Result := Lines;
end;
procedure TJvDynControlCxDBMemo.ControlSetWantTabs(Value: Boolean);
begin
Properties.WantTabs := Value;
end;
procedure TJvDynControlCxDBMemo.ControlSetWantReturns(Value: Boolean);
begin
Properties.WantReturns := Value;
end;
procedure TJvDynControlCxDBMemo.ControlSetWordWrap(Value: Boolean);
begin
Properties.WordWrap := Value;
end;
procedure TJvDynControlCxDBMemo.ControlSetScrollBars(Value: TScrollStyle);
begin
ScrollBars := Value;
end;
procedure TJvDynControlCxDBMemo.ControlSetDataSource(Value: TDataSource);
begin
Databinding.DataSource := Value;
end;
function TJvDynControlCxDBMemo.ControlGetDataSource: TDataSource;
begin
Result := DataBinding.DataSource;
end;
procedure TJvDynControlCxDBMemo.ControlSetDataField(const Value: string);
begin
Databinding.DataField := Value;
end;
function TJvDynControlCxDBMemo.ControlGetDataField: string;
begin
Result := Databinding.DataField;
end;
procedure TJvDynControlCxDBMemo.ControlSetCxProperties(Value: TCxDynControlWrapper);
begin
Style.LookAndFeel.Assign(Value.LookAndFeel);
Style.StyleController := Value.StyleController;
end;
//=== { TJvDynControlCxDBRadioGroup } ========================================
constructor TJvDynControlCxDBRadioGroup.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FItems := TStrings.Create;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -