📄 jvdyncontrolenginevcl.pas
字号:
Result := Checked[Index];
end;
function TJvDynControlVCLCheckListBox.ControlGetItemEnabled(Index: Integer): Boolean;
begin
Result := ItemEnabled[Index];
end;
function TJvDynControlVCLCheckListBox.ControlGetState(Index: Integer): TCheckBoxState;
begin
Result := State[Index];
end;
//=== { TJvDynControlVCLComboBox } ===========================================
procedure TJvDynControlVCLComboBox.ControlSetDefaultProperties;
begin
end;
procedure TJvDynControlVCLComboBox.ControlSetCaption(const Value: string);
begin
end;
procedure TJvDynControlVCLComboBox.ControlSetTabOrder(Value: Integer);
begin
TabOrder := Value;
end;
procedure TJvDynControlVCLComboBox.ControlSetOnEnter(Value: TNotifyEvent);
begin
OnEnter := Value;
end;
procedure TJvDynControlVCLComboBox.ControlSetOnExit(Value: TNotifyEvent);
begin
OnExit := Value;
end;
procedure TJvDynControlVCLComboBox.ControlSetOnChange(Value: TNotifyEvent);
begin
// OnChange := Value;
end;
procedure TJvDynControlVCLComboBox.ControlSetOnClick(Value: TNotifyEvent);
begin
OnClick := Value;
end;
procedure TJvDynControlVCLComboBox.ControlSetHint(const Value: string);
begin
Hint := Value;
end;
procedure TJvDynControlVCLComboBox.ControlSetValue(Value: Variant);
begin
if Style = csDropDownList then
ItemIndex := Items.IndexOf(Value)
else
Text := Value;
end;
function TJvDynControlVCLComboBox.ControlGetValue: Variant;
begin
Result := Text;
end;
procedure TJvDynControlVCLComboBox.ControlSetSorted(Value: Boolean);
begin
Sorted := Value;
end;
procedure TJvDynControlVCLComboBox.ControlSetItems(Value: TStrings);
begin
Items.Assign(Value);
end;
function TJvDynControlVCLComboBox.ControlGetItems: TStrings;
begin
Result := Items;
end;
procedure TJvDynControlVCLComboBox.ControlSetNewEntriesAllowed(Value: Boolean);
const
Styles: array [Boolean] of TComboBoxStyle =
(csDropDownList, csDropDown);
begin
Style := Styles[Value];
end;
//=== { TJvDynControlVCLGroupBox } ===========================================
procedure TJvDynControlVCLGroupBox.ControlSetDefaultProperties;
begin
end;
procedure TJvDynControlVCLGroupBox.ControlSetCaption(const Value: string);
begin
Caption := Value;
end;
procedure TJvDynControlVCLGroupBox.ControlSetTabOrder(Value: Integer);
begin
TabOrder := Value;
end;
procedure TJvDynControlVCLGroupBox.ControlSetOnEnter(Value: TNotifyEvent);
begin
OnEnter := Value;
end;
procedure TJvDynControlVCLGroupBox.ControlSetOnExit(Value: TNotifyEvent);
begin
OnExit := Value;
end;
procedure TJvDynControlVCLGroupBox.ControlSetOnClick(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlVCLGroupBox.ControlSetHint(const Value: string);
begin
Hint := Value;
end;
//=== { TJvDynControlVCLPanel } ==============================================
procedure TJvDynControlVCLPanel.ControlSetDefaultProperties;
begin
BevelInner := bvNone;
BevelOuter := bvNone;
end;
procedure TJvDynControlVCLPanel.ControlSetCaption(const Value: string);
begin
Caption := Value;
end;
procedure TJvDynControlVCLPanel.ControlSetTabOrder(Value: Integer);
begin
TabOrder := Value;
end;
procedure TJvDynControlVCLPanel.ControlSetOnEnter(Value: TNotifyEvent);
begin
OnEnter := Value;
end;
procedure TJvDynControlVCLPanel.ControlSetOnExit(Value: TNotifyEvent);
begin
OnExit := Value;
end;
procedure TJvDynControlVCLPanel.ControlSetOnClick(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlVCLPanel.ControlSetHint(const Value: string);
begin
Hint := Value;
end;
procedure TJvDynControlVCLPanel.ControlSetBorder(ABevelInner: TPanelBevel; ABevelOuter: TPanelBevel; ABevelWidth: Integer; ABorderStyle: TBorderStyle; ABorderWidth: Integer);
begin
BorderWidth := ABorderWidth;
BorderStyle := ABorderStyle;
BevelInner := ABevelInner;
BevelOuter := ABevelOuter;
BevelWidth := ABevelWidth;
end;
//=== { TJvDynControlVCLImage } ==============================================
procedure TJvDynControlVCLImage.ControlSetDefaultProperties;
begin
end;
procedure TJvDynControlVCLImage.ControlSetCaption(const Value: string);
begin
Caption := Value;
end;
procedure TJvDynControlVCLImage.ControlSetTabOrder(Value: Integer);
begin
// TabOrder := Value;
end;
procedure TJvDynControlVCLImage.ControlSetOnEnter(Value: TNotifyEvent);
begin
// OnEnter := Value;
end;
procedure TJvDynControlVCLImage.ControlSetOnExit(Value: TNotifyEvent);
begin
// OnExit := Value;
end;
procedure TJvDynControlVCLImage.ControlSetOnClick(Value: TNotifyEvent);
begin
OnClick := Value;
end;
procedure TJvDynControlVCLImage.ControlSetHint(const Value: string);
begin
Hint := Value;
end;
procedure TJvDynControlVCLImage.ControlSetAutoSize(Value: Boolean);
begin
AutoSize := Value;
end;
procedure TJvDynControlVCLImage.ControlSetIncrementalDisplay(Value: Boolean);
begin
IncrementalDisplay := Value;
end;
procedure TJvDynControlVCLImage.ControlSetCenter(Value: Boolean);
begin
Center := Value;
end;
{$IFDEF VCL}
procedure TJvDynControlVCLImage.ControlSetProportional(Value: Boolean);
begin
{$IFDEF COMPILER6_UP}
Proportional := Value;
{$ENDIF COMPILER6_UP}
end;
{$ENDIF VCL}
procedure TJvDynControlVCLImage.ControlSetStretch(Value: Boolean);
begin
Stretch := Value;
end;
procedure TJvDynControlVCLImage.ControlSetTransparent(Value: Boolean);
begin
Transparent := Value;
end;
procedure TJvDynControlVCLImage.ControlSetPicture(Value: TPicture);
begin
Picture.Assign(Value);
end;
procedure TJvDynControlVCLImage.ControlSetGraphic(Value: TGraphic);
begin
Picture.Assign(Value);
end;
function TJvDynControlVCLImage.ControlGetPicture: TPicture;
begin
Result := Picture;
end;
//=== { TJvDynControlVCLScrollBox } ==========================================
procedure TJvDynControlVCLScrollBox.ControlSetDefaultProperties;
begin
end;
procedure TJvDynControlVCLScrollBox.ControlSetCaption(const Value: string);
begin
Caption := Value;
end;
procedure TJvDynControlVCLScrollBox.ControlSetTabOrder(Value: Integer);
begin
TabOrder := Value;
end;
procedure TJvDynControlVCLScrollBox.ControlSetOnEnter(Value: TNotifyEvent);
begin
OnEnter := Value;
end;
procedure TJvDynControlVCLScrollBox.ControlSetOnExit(Value: TNotifyEvent);
begin
OnExit := Value;
end;
procedure TJvDynControlVCLScrollBox.ControlSetOnClick(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlVCLScrollBox.ControlSetHint(const Value: string);
begin
Hint := Value;
end;
//=== { TJvDynControlVCLLabel } ==============================================
procedure TJvDynControlVCLLabel.ControlSetDefaultProperties;
begin
end;
procedure TJvDynControlVCLLabel.ControlSetCaption(const Value: string);
begin
Caption := Value;
end;
procedure TJvDynControlVCLLabel.ControlSetTabOrder(Value: Integer);
begin
end;
procedure TJvDynControlVCLLabel.ControlSetOnEnter(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlVCLLabel.ControlSetOnExit(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlVCLLabel.ControlSetOnClick(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlVCLLabel.ControlSetHint(const Value: string);
begin
Hint := Value;
end;
procedure TJvDynControlVCLLabel.ControlSetFocusControl(Value: TWinControl);
begin
FocusControl := Value;
end;
procedure TJvDynControlVCLLabel.ControlSetWordWrap(Value: Boolean);
begin
WordWrap := Value;
end;
//=== { TJvDynControlVCLStaticText } =========================================
{$IFDEF VCL}
procedure TJvDynControlVCLStaticText.ControlSetDefaultProperties;
begin
end;
procedure TJvDynControlVCLStaticText.ControlSetCaption(const Value: string);
begin
Caption := Value;
end;
procedure TJvDynControlVCLStaticText.ControlSetTabOrder(Value: Integer);
begin
end;
procedure TJvDynControlVCLStaticText.ControlSetOnEnter(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlVCLStaticText.ControlSetOnExit(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlVCLStaticText.ControlSetOnClick(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlVCLStaticText.ControlSetHint(const Value: string);
begin
Hint := Value;
end;
{$ENDIF VCL}
//=== { TJvDynControlVCLButton } =============================================
procedure TJvDynControlVCLButton.ControlSetDefaultProperties;
begin
end;
procedure TJvDynControlVCLButton.ControlSetCaption(const Value: string);
begin
Caption := Value;
end;
procedure TJvDynControlVCLButton.ControlSetTabOrder(Value: Integer);
begin
end;
procedure TJvDynControlVCLButton.ControlSetOnEnter(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlVCLButton.ControlSetOnExit(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlVCLButton.ControlSetOnClick(Value: TNotifyEvent);
begin
OnClick := Value;
end;
procedure TJvDynControlVCLButton.ControlSetHint(const Value: string);
begin
Hint := Value;
end;
procedure TJvDynControlVCLButton.ControlSetGlyph(Value: TBitmap);
begin
Glyph.Assign(Value);
end;
procedure TJvDynControlVCLButton.ControlSetNumGlyphs(Value: Integer);
begin
NumGlyphs := Value;
end;
procedure TJvDynControlVCLButton.ControlSetLayout(Value: TButtonLayout);
begin
Layout := Value;
end;
procedure TJvDynControlVCLButton.ControlSetDefault(Value: Boolean);
begin
Default := Value;
end;
procedure TJvDynControlVCLButton.ControlSetCancel(Value: Boolean);
begin
Cancel := Value;
end;
procedure TJvDynControlVCLButton.ControlSetAction(Value: TCustomAction);
begin
Action := Value;
end;
//=== { TJvDynControlVCLRadioButton } ========================================
procedure TJvDynControlVCLRadioButton.ControlSetDefaultProperties;
begin
end;
procedure TJvDynControlVCLRadioButton.ControlSetCaption(const Value: string);
begin
Caption := Value;
end;
procedure TJvDynControlVCLRadioButton.ControlSetTabOrder(Value: Integer);
begin
TabOrder := Value;
end;
procedure TJvDynControlVCLRadioButton.ControlSetOnEnter(Value: TNotifyEvent);
begin
OnEnter := Value;
end;
procedure TJvDynControlVCLRadioButton.ControlSetOnExit(Value: TNotifyEvent);
begin
OnExit := Value;
end;
procedure TJvDynControlVCLRadioButton.ControlSetOnClick(Value: TNotifyEvent);
begin
OnClick := Value;
end;
procedure TJvDynControlVCLRadioButton.ControlSetHint(const Value: string);
begin
Hint := Value;
end;
// IJvDynControlData
procedure TJvDynControlVCLRadioButton.ControlSetOnChange(Value: TNotifyEvent);
begin
OnClick := Value;
end;
procedure TJvDynControlVCLRadioButton.ControlSetValue(Value: Variant);
begin
Checked := JvDynControlVariantToBoolean(Value);
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -