📄 jvqdyncontrolenginejvcl.pas
字号:
begin
Items.Assign(Value);
end;
function TJvDynControlJVCLRadioGroup.ControlGetItems: TStrings;
begin
Result := Items;
end;
procedure TJvDynControlJVCLRadioGroup.ControlSetColumns(Value: Integer);
begin
Columns := Value;
end;
//=== TJvDynControlJVCLListBox ===============================================
procedure TJvDynControlJVCLListBox.ControlSetDefaultProperties;
begin
end;
procedure TJvDynControlJVCLListBox.ControlSetCaption(Value: string);
begin
end;
procedure TJvDynControlJVCLListBox.ControlSetTabOrder(Value: Integer);
begin
TabOrder := Value;
end;
procedure TJvDynControlJVCLListBox.ControlSetOnEnter(Value: TNotifyEvent);
begin
OnEnter := Value;
end;
procedure TJvDynControlJVCLListBox.ControlSetOnExit(Value: TNotifyEvent);
begin
OnExit := Value;
end;
procedure TJvDynControlJVCLListBox.ControlSetOnChange(Value: TNotifyEvent);
begin
// OnChange := Value;
end;
procedure TJvDynControlJVCLListBox.ControlSetOnClick(Value: TNotifyEvent);
begin
OnClick := Value;
end;
procedure TJvDynControlJVCLListBox.ControlSetValue(Value: Variant);
begin
if VarType(Value) in [varSmallint, varInteger] then
ItemIndex := Value
else
try
ItemIndex := Value;
except
ItemIndex := Items.IndexOf(Value);
end;
end;
function TJvDynControlJVCLListBox.ControlGetValue: Variant;
begin
Result := ItemIndex;
end;
procedure TJvDynControlJVCLListBox.ControlSetSorted(Value: Boolean);
begin
Sorted := Value;
end;
procedure TJvDynControlJVCLListBox.ControlSetItems(Value: TStrings);
begin
Items.Assign(Value);
end;
function TJvDynControlJVCLListBox.ControlGetItems: TStrings;
begin
Result := Items;
end;
procedure TJvDynControlJVCLListBox.ControlSetOnDblClick(Value: TNotifyEvent);
begin
OnDblClick := Value;
end;
//=== TJvDynControlJVCLComboBox ==============================================
procedure TJvDynControlJVCLComboBox.ControlSetDefaultProperties;
begin
end;
//procedure TJvDynControlJVCLComboBox.ControlSetReadOnly(Value: Boolean);
//begin
// ReadOnly := Value;
//end;
procedure TJvDynControlJVCLComboBox.ControlSetCaption(Value: string);
begin
end;
procedure TJvDynControlJVCLComboBox.ControlSetTabOrder(Value: Integer);
begin
TabOrder := Value;
end;
procedure TJvDynControlJVCLComboBox.ControlSetOnEnter(Value: TNotifyEvent);
begin
OnEnter := Value;
end;
procedure TJvDynControlJVCLComboBox.ControlSetOnExit(Value: TNotifyEvent);
begin
OnExit := Value;
end;
procedure TJvDynControlJVCLComboBox.ControlSetOnChange(Value: TNotifyEvent);
begin
// OnChange := Value;
end;
procedure TJvDynControlJVCLComboBox.ControlSetOnClick(Value: TNotifyEvent);
begin
OnClick := Value;
end;
procedure TJvDynControlJVCLComboBox.ControlSetValue(Value: Variant);
begin
if Style = csDropDownList then
ItemIndex := Items.IndexOf(Value)
else
Text := Value;
end;
function TJvDynControlJVCLComboBox.ControlGetValue: Variant;
begin
Result := Text;
end;
procedure TJvDynControlJVCLComboBox.ControlSetSorted(Value: Boolean);
begin
Sorted := Value;
end;
procedure TJvDynControlJVCLComboBox.ControlSetItems(Value: TStrings);
begin
Items.Assign(Value);
end;
function TJvDynControlJVCLComboBox.ControlGetItems: TStrings;
begin
Result := Items;
end;
procedure TJvDynControlJVCLComboBox.ControlSetNewEntriesAllowed(Value: Boolean);
begin
if Value then
Style := csDropDown
else
Style := csDropDownList;
end;
//=== TJvDynControlJVCLPanel =================================================
procedure TJvDynControlJVCLPanel.ControlSetDefaultProperties;
begin
BevelInner := bvNone;
BevelOuter := bvNone;
end;
procedure TJvDynControlJVCLPanel.ControlSetCaption(Value: string);
begin
Caption := Value;
end;
procedure TJvDynControlJVCLPanel.ControlSetTabOrder(Value: Integer);
begin
TabOrder := Value;
end;
procedure TJvDynControlJVCLPanel.ControlSetOnEnter(Value: TNotifyEvent);
begin
OnEnter := Value;
end;
procedure TJvDynControlJVCLPanel.ControlSetOnExit(Value: TNotifyEvent);
begin
OnExit := Value;
end;
procedure TJvDynControlJVCLPanel.ControlSetOnClick(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlJVCLPanel.ControlSetBorder(ABevelInner: TPanelBevel;
ABevelOuter: TPanelBevel; ABevelWidth: Integer;
ABorderStyle: TBorderStyle; ABorderWidth: Integer);
begin
BorderWidth := ABorderWidth;
BorderStyle := ABorderStyle;
BevelInner := ABevelInner;
BevelOuter := ABevelOuter;
BevelWidth := ABevelWidth;
end;
//=== TJvDynControlJVCLImage =================================================
procedure TJvDynControlJVCLImage.ControlSetDefaultProperties;
begin
end;
procedure TJvDynControlJVCLImage.ControlSetCaption(Value: string);
begin
Caption := Value;
end;
procedure TJvDynControlJVCLImage.ControlSetTabOrder(Value: Integer);
begin
// TabOrder := Value;
end;
procedure TJvDynControlJVCLImage.ControlSetOnEnter(Value: TNotifyEvent);
begin
// OnEnter := Value;
end;
procedure TJvDynControlJVCLImage.ControlSetOnExit(Value: TNotifyEvent);
begin
// OnExit := Value;
end;
procedure TJvDynControlJVCLImage.ControlSetOnClick(Value: TNotifyEvent);
begin
OnClick := Value;
end;
procedure TJvDynControlJVCLImage.ControlSetAutoSize(Value: Boolean);
begin
AutoSize := Value;
end;
procedure TJvDynControlJVCLImage.ControlSetIncrementalDisplay(Value: Boolean);
begin
IncrementalDisplay := Value;
end;
procedure TJvDynControlJVCLImage.ControlSetCenter(Value: Boolean);
begin
Center := Value;
end;
procedure TJvDynControlJVCLImage.ControlSetProportional(Value: Boolean);
begin
Proportional := Value;
end;
procedure TJvDynControlJVCLImage.ControlSetStretch(Value: Boolean);
begin
Stretch := Value;
end;
procedure TJvDynControlJVCLImage.ControlSetTransparent(Value: Boolean);
begin
Transparent := Value;
end;
procedure TJvDynControlJVCLImage.ControlSetPicture(Value: TPicture);
begin
Picture.Assign(Value);
end;
procedure TJvDynControlJVCLImage.ControlSetGraphic(Value: TGraphic);
begin
Picture.Assign(Value);
end;
function TJvDynControlJVCLImage.ControlGetPicture: TPicture;
begin
Result := Picture;
end;
//=== TJvDynControlJVCLScrollBox =============================================
procedure TJvDynControlJVCLScrollBox.ControlSetDefaultProperties;
begin
end;
procedure TJvDynControlJVCLScrollBox.ControlSetCaption(Value: string);
begin
Caption := Value;
end;
procedure TJvDynControlJVCLScrollBox.ControlSetTabOrder(Value: Integer);
begin
TabOrder := Value;
end;
procedure TJvDynControlJVCLScrollBox.ControlSetOnEnter(Value: TNotifyEvent);
begin
OnEnter := Value;
end;
procedure TJvDynControlJVCLScrollBox.ControlSetOnExit(Value: TNotifyEvent);
begin
OnExit := Value;
end;
procedure TJvDynControlJVCLScrollBox.ControlSetOnClick(Value: TNotifyEvent);
begin
end;
//=== TJvDynControlJVCLLabel =================================================
procedure TJvDynControlJVCLLabel.ControlSetDefaultProperties;
begin
end;
procedure TJvDynControlJVCLLabel.ControlSetCaption(Value: string);
begin
Caption := Value;
end;
procedure TJvDynControlJVCLLabel.ControlSetTabOrder(Value: Integer);
begin
end;
procedure TJvDynControlJVCLLabel.ControlSetOnEnter(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlJVCLLabel.ControlSetOnExit(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlJVCLLabel.ControlSetOnClick(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlJVCLLabel.ControlSetFocusControl(Value: TWinControl);
begin
FocusControl := Value;
end;
procedure TJvDynControlJVCLLabel.ControlSetWordWrap(Value: Boolean);
begin
WordWrap := Value;
end;
//=== TJvDynControlJVCLStaticText ============================================
procedure TJvDynControlJVCLStaticText.ControlSetDefaultProperties;
begin
end;
procedure TJvDynControlJVCLStaticText.ControlSetCaption(Value: string);
begin
Caption := Value;
end;
procedure TJvDynControlJVCLStaticText.ControlSetTabOrder(Value: Integer);
begin
end;
procedure TJvDynControlJVCLStaticText.ControlSetOnEnter(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlJVCLStaticText.ControlSetOnExit(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlJVCLStaticText.ControlSetOnClick(Value: TNotifyEvent);
begin
end;
//=== TJvDynControlJVCLButton ================================================
procedure TJvDynControlJVCLButton.ControlSetDefaultProperties;
begin
end;
procedure TJvDynControlJVCLButton.ControlSetCaption(Value: string);
begin
Caption := Value;
end;
procedure TJvDynControlJVCLButton.ControlSetTabOrder(Value: Integer);
begin
end;
procedure TJvDynControlJVCLButton.ControlSetOnEnter(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlJVCLButton.ControlSetOnExit(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlJVCLButton.ControlSetOnClick(Value: TNotifyEvent);
begin
OnClick := Value;
end;
procedure TJvDynControlJVCLButton.ControlSetGlyph(Value: TBitmap);
begin
Glyph.Assign(Value);
end;
procedure TJvDynControlJVCLButton.ControlSetNumGlyphs(Value: Integer);
begin
NumGlyphs := Value;
end;
procedure TJvDynControlJVCLButton.ControlSetLayout(Value: TButtonLayout);
begin
Layout := Value;
end;
function DynControlEngineJVCL: TJvDynControlEngine;
begin
Result := IntDynControlEngineJVCL;
end;
initialization
IntDynControlEngineJVCL := TJvDynControlEngine.Create;
IntDynControlEngineJVCL.RegisterControl(jctStaticText, TJvDynControlJVCLStaticText);
IntDynControlEngineJVCL.RegisterControl(jctComboBox, TJvDynControlJVCLComboBox);
IntDynControlEngineJVCL.RegisterControl(jctListBox, TJvDynControlJVCLListBox);
IntDynControlEngineJVCL.RegisterControl(jctDateTimeEdit, TJvDynControlJVCLDateTimeEdit);
IntDynControlEngineJVCL.RegisterControl(jctTimeEdit, TJvDynControlJVCLTimeEdit);
IntDynControlEngineJVCL.RegisterControl(jctDateEdit, TJvDynControlJVCLDateEdit);
IntDynControlEngineJVCL.RegisterControl(jctSpinEdit, TJvDynControlJVCLSpinEdit);
IntDynControlEngineJVCL.RegisterControl(jctMemo, TJvDynControlJVCLMemo);
IntDynControlEngineJVCL.RegisterControl(jctLabel, TJvDynControlJVCLLabel);
IntDynControlEngineJVCL.RegisterControl(jctButton, TJvDynControlJVCLButton);
IntDynControlEngineJVCL.RegisterControl(jctScrollBox, TJvDynControlJVCLScrollBox);
IntDynControlEngineJVCL.RegisterControl(jctPanel, TJvDynControlJVCLPanel);
IntDynControlEngineJVCL.RegisterControl(jctImage, TJvDynControlVCLImage);
IntDynControlEngineJVCL.RegisterControl(jctCheckBox, TJvDynControlJVCLCheckBox);
IntDynControlEngineJVCL.RegisterControl(jctRadioGroup, TJvDynControlJVCLRadioGroup);
IntDynControlEngineJVCL.RegisterControl(jctEdit, TJvDynControlJVCLMaskEdit);
IntDynControlEngineJVCL.RegisterControl(jctCalculateEdit, TJvDynControlJVCLCalcEdit);
IntDynControlEngineJVCL.RegisterControl(jctDirectoryEdit, TJvDynControlJVCLDirectoryEdit);
IntDynControlEngineJVCL.RegisterControl(jctFileNameEdit, TJvDynControlJVCLFileNameEdit);
IntDynControlEngineJVCL.RegisterControl(jctButtonEdit, TJvDynControlJVCLButtonEdit);
SetDefaultDynControlEngine(IntDynControlEngineJVCL);
finalization
FreeAndNil(IntDynControlEngineJVCL);
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -