📄 comexlabel.pas
字号:
if (Value = 1) then _control.Align := alTop;
if (Value = 2) then _control.Align := alBottom;
if (Value = 3) then _control.Align := alLeft;
if (Value = 4) then _control.Align := alRight;
if (Value = 5) then _control.Align := alClient;
if (Value = 6) then _control.Align := alCustom;
end;
function TExControlLabel.Get_Alignment: Integer;
begin
if (_control.Alignment = taLeftJustify) then Result := 0;
if (_control.Alignment = taRightJustify) then Result := 1;
if (_control.Alignment = taCenter) then Result := 2;
end;
procedure TExControlLabel.Set_Alignment(Value: Integer);
begin
if (Value = 0) then _control.Alignment := taLeftJustify;
if (Value = 1) then _control.Alignment := taRightJustify;
if (Value = 2) then _control.Alignment := taCenter;
end;
function TExControlLabel.Get_AutoSize: Integer;
begin
if (_control.AutoSize = False) then Result := 0;
if (_control.AutoSize = True) then Result := 1;
end;
procedure TExControlLabel.Set_AutoSize(Value: Integer);
begin
if (Value = 0) then _control.AutoSize := False;
if (Value = 1) then _control.AutoSize := True;
end;
function TExControlLabel.Get_BiDiMode: Integer;
begin
if (_control.BiDiMode = bdLeftToRight) then Result := 0;
if (_control.BiDiMode = bdRightToLeft) then Result := 1;
if (_control.BiDiMode = bdRightToLeftNoAlign) then Result := 2;
if (_control.BiDiMode = bdRightToLeftReadingOnly) then Result := 3;
end;
procedure TExControlLabel.Set_BiDiMode(Value: Integer);
begin
if (Value = 0) then _control.BiDiMode := bdLeftToRight;
if (Value = 1) then _control.BiDiMode := bdRightToLeft;
if (Value = 2) then _control.BiDiMode := bdRightToLeftNoAlign;
if (Value = 3) then _control.BiDiMode := bdRightToLeftReadingOnly;
end;
function TExControlLabel.Get_Caption: Widestring;
begin
Result := _control.Caption;
end;
procedure TExControlLabel.Set_Caption(const Value: Widestring);
begin
_control.Caption := Value;
end;
function TExControlLabel.Get_Color: Integer;
begin
Result := _control.Color;
end;
procedure TExControlLabel.Set_Color(Value: Integer);
begin
_control.Color := Value;
end;
function TExControlLabel.Get_DragCursor: Integer;
begin
Result := _control.DragCursor;
end;
procedure TExControlLabel.Set_DragCursor(Value: Integer);
begin
_control.DragCursor := Value;
end;
function TExControlLabel.Get_DragKind: Integer;
begin
if (_control.DragKind = dkDrag) then Result := 0;
if (_control.DragKind = dkDock) then Result := 1;
end;
procedure TExControlLabel.Set_DragKind(Value: Integer);
begin
if (Value = 0) then _control.DragKind := dkDrag;
if (Value = 1) then _control.DragKind := dkDock;
end;
function TExControlLabel.Get_DragMode: Integer;
begin
if (_control.DragMode = dmManual) then Result := 0;
if (_control.DragMode = dmAutomatic) then Result := 1;
end;
procedure TExControlLabel.Set_DragMode(Value: Integer);
begin
if (Value = 0) then _control.DragMode := dmManual;
if (Value = 1) then _control.DragMode := dmAutomatic;
end;
function TExControlLabel.Get_Enabled: Integer;
begin
if (_control.Enabled = False) then Result := 0;
if (_control.Enabled = True) then Result := 1;
end;
procedure TExControlLabel.Set_Enabled(Value: Integer);
begin
if (Value = 0) then _control.Enabled := False;
if (Value = 1) then _control.Enabled := True;
end;
function TExControlLabel.Get_Font: IExodusControlFont;
begin
Result := TExControlFont.Create(TFont(_control.Font));
end;
function TExControlLabel.Get_ParentBiDiMode: Integer;
begin
if (_control.ParentBiDiMode = False) then Result := 0;
if (_control.ParentBiDiMode = True) then Result := 1;
end;
procedure TExControlLabel.Set_ParentBiDiMode(Value: Integer);
begin
if (Value = 0) then _control.ParentBiDiMode := False;
if (Value = 1) then _control.ParentBiDiMode := True;
end;
function TExControlLabel.Get_ParentColor: Integer;
begin
if (_control.ParentColor = False) then Result := 0;
if (_control.ParentColor = True) then Result := 1;
end;
procedure TExControlLabel.Set_ParentColor(Value: Integer);
begin
if (Value = 0) then _control.ParentColor := False;
if (Value = 1) then _control.ParentColor := True;
end;
function TExControlLabel.Get_ParentFont: Integer;
begin
if (_control.ParentFont = False) then Result := 0;
if (_control.ParentFont = True) then Result := 1;
end;
procedure TExControlLabel.Set_ParentFont(Value: Integer);
begin
if (Value = 0) then _control.ParentFont := False;
if (Value = 1) then _control.ParentFont := True;
end;
function TExControlLabel.Get_ParentShowHint: Integer;
begin
if (_control.ParentShowHint = False) then Result := 0;
if (_control.ParentShowHint = True) then Result := 1;
end;
procedure TExControlLabel.Set_ParentShowHint(Value: Integer);
begin
if (Value = 0) then _control.ParentShowHint := False;
if (Value = 1) then _control.ParentShowHint := True;
end;
function TExControlLabel.Get_PopupMenu: IExodusControlPopupMenu;
begin
Result := TExControlPopupMenu.Create(TTntPopupMenu(_control.PopupMenu));
end;
function TExControlLabel.Get_ShowAccelChar: Integer;
begin
if (_control.ShowAccelChar = False) then Result := 0;
if (_control.ShowAccelChar = True) then Result := 1;
end;
procedure TExControlLabel.Set_ShowAccelChar(Value: Integer);
begin
if (Value = 0) then _control.ShowAccelChar := False;
if (Value = 1) then _control.ShowAccelChar := True;
end;
function TExControlLabel.Get_ShowHint: Integer;
begin
if (_control.ShowHint = False) then Result := 0;
if (_control.ShowHint = True) then Result := 1;
end;
procedure TExControlLabel.Set_ShowHint(Value: Integer);
begin
if (Value = 0) then _control.ShowHint := False;
if (Value = 1) then _control.ShowHint := True;
end;
function TExControlLabel.Get_Transparent: Integer;
begin
if (_control.Transparent = False) then Result := 0;
if (_control.Transparent = True) then Result := 1;
end;
procedure TExControlLabel.Set_Transparent(Value: Integer);
begin
if (Value = 0) then _control.Transparent := False;
if (Value = 1) then _control.Transparent := True;
end;
function TExControlLabel.Get_Layout: Integer;
begin
if (_control.Layout = tlTop) then Result := 0;
if (_control.Layout = tlCenter) then Result := 1;
if (_control.Layout = tlBottom) then Result := 2;
end;
procedure TExControlLabel.Set_Layout(Value: Integer);
begin
if (Value = 0) then _control.Layout := tlTop;
if (Value = 1) then _control.Layout := tlCenter;
if (Value = 2) then _control.Layout := tlBottom;
end;
function TExControlLabel.Get_Visible: Integer;
begin
if (_control.Visible = False) then Result := 0;
if (_control.Visible = True) then Result := 1;
end;
procedure TExControlLabel.Set_Visible(Value: Integer);
begin
if (Value = 0) then _control.Visible := False;
if (Value = 1) then _control.Visible := True;
end;
function TExControlLabel.Get_WordWrap: Integer;
begin
if (_control.WordWrap = False) then Result := 0;
if (_control.WordWrap = True) then Result := 1;
end;
procedure TExControlLabel.Set_WordWrap(Value: Integer);
begin
if (Value = 0) then _control.WordWrap := False;
if (Value = 1) then _control.WordWrap := True;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -