📄 jvdyncontrolenginejvcl.pas
字号:
begin
ItemEnabled[Index] := Value;
end;
procedure TJvDynControlJVCLCheckListBox.ControlSetHeader(Index: Integer; Value: Boolean);
begin
{$IFDEF COMPILER6_UP}
{$IFDEF VCL}
Header[Index] := Value;
{$ENDIF VCL}
{$ENDIF COMPILER6_UP}
end;
procedure TJvDynControlJVCLCheckListBox.ControlSetState(Index: Integer; Value: TCheckBoxState);
begin
State[Index] := Value;
end;
function TJvDynControlJVCLCheckListBox.ControlGetChecked(Index: Integer): Boolean;
begin
Result := Checked[Index];
end;
function TJvDynControlJVCLCheckListBox.ControlGetItemEnabled(Index: Integer): Boolean;
begin
Result := ItemEnabled[Index];
end;
function TJvDynControlJVCLCheckListBox.ControlGetHeader(Index: Integer): Boolean;
begin
{$IFDEF COMPILER6_UP}
{$IFDEF VCL}
Result := Header[Index];
{$ENDIF VCL}
{$IFDEF VisualCLX}
Result := False;
{$ENDIF VisualCLX}
{$ELSE}
Result := False;
{$ENDIF COMPILER6_UP}
end;
function TJvDynControlJVCLCheckListBox.ControlGetState(Index: Integer): TCheckBoxState;
begin
Result := State[Index];
end;
//=== { TJvDynControlJVCLComboBox } ==========================================
procedure TJvDynControlJVCLComboBox.ControlSetDefaultProperties;
begin
end;
//procedure TJvDynControlJVCLComboBox.ControlSetReadOnly(Value: Boolean);
//begin
// ReadOnly := Value;
//end;
procedure TJvDynControlJVCLComboBox.ControlSetCaption(const 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.ControlSetHint(const Value: string);
begin
Hint := 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;
//=== { TJvDynControlJVCLGroupBox } ==========================================
procedure TJvDynControlJVCLGroupBox.ControlSetDefaultProperties;
begin
end;
procedure TJvDynControlJVCLGroupBox.ControlSetCaption(const Value: string);
begin
Caption := Value;
end;
procedure TJvDynControlJVCLGroupBox.ControlSetTabOrder(Value: Integer);
begin
TabOrder := Value;
end;
procedure TJvDynControlJVCLGroupBox.ControlSetOnEnter(Value: TNotifyEvent);
begin
OnEnter := Value;
end;
procedure TJvDynControlJVCLGroupBox.ControlSetOnExit(Value: TNotifyEvent);
begin
OnExit := Value;
end;
procedure TJvDynControlJVCLGroupBox.ControlSetOnClick(Value: TNotifyEvent);
begin
end;
procedure TJvDynControlJVCLGroupBox.ControlSetHint(const Value: string);
begin
Hint := Value;
end;
//=== { TJvDynControlJVCLPanel } =============================================
procedure TJvDynControlJVCLPanel.ControlSetDefaultProperties;
begin
BevelInner := bvNone;
BevelOuter := bvNone;
end;
procedure TJvDynControlJVCLPanel.ControlSetCaption(const 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.ControlSetHint(const Value: string);
begin
Hint := Value;
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(const 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.ControlSetHint(const Value: string);
begin
Hint := 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
{$IFDEF COMPILER6_UP}
Proportional := Value;
{$ENDIF COMPILER6_UP}
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(const 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;
procedure TJvDynControlJVCLScrollBox.ControlSetHint(const Value: string);
begin
Hint := Value;
end;
//=== { TJvDynControlJVCLLabel } =============================================
procedure TJvDynControlJVCLLabel.ControlSetDefaultProperties;
begin
end;
procedure TJvDynControlJVCLLabel.ControlSetCaption(const 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.ControlSetHint(const Value: string);
begin
Hint := Value;
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(const 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;
procedure TJvDynControlJVCLStaticText.ControlSetHint(const Value: string);
begin
Hint := Value;
end;
//=== { TJvDynControlJVCLButton } ============================================
procedure TJvDynControlJVCLButton.ControlSetDefaultProperties;
begin
end;
procedure TJvDynControlJVCLButton.ControlSetCaption(const 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.ControlSetHint(const Value: string);
begin
Hint := 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;
procedure TJvDynControlJVCLButton.ControlSetDefault(Value: Boolean);
begin
Default := Value;
end;
procedure TJvDynControlJVCLButton.ControlSetCancel(Value: Boolean);
begin
Cancel := Value;
end;
procedure TJvDynControlJVCLButton.ControlSetAction(Value: TCustomAction);
begin
Action := Value;
end;
//=== { TJvDynControlJVCLRadioButton } =======================================
procedure TJvDynControlJVCLRadioButton.ControlSetDefaultPr
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -