Changeset 412 for branches/highdpi/Packages/DpiControls/UDpiControls.pas
- Timestamp:
- Nov 4, 2021, 2:59:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/Packages/DpiControls/UDpiControls.pas
r405 r412 981 981 NativeMemo: TMemo; 982 982 function GetLines: TStrings; 983 function GetReadOnly: Boolean; 984 function GetScrollBars: TScrollStyle; 985 function GetWordWrap: Boolean; 983 986 procedure SetLines(AValue: TStrings); 987 procedure SetReadOnly(AValue: Boolean); 988 procedure SetScrollBars(AValue: TScrollStyle); 989 procedure SetWordWrap(AValue: Boolean); 990 protected 991 function GetNativeWinControl: TWinControl; override; 992 function GetNativeMemo: TMemo; virtual; 984 993 public 985 994 procedure Clear; 986 function GetNativeMemo: TMemo;987 995 constructor Create(TheOwner: TComponent); override; 988 996 destructor Destroy; override; 997 published 989 998 property Lines: TStrings read GetLines write SetLines; 999 property WordWrap: Boolean read GetWordWrap write SetWordWrap default True; 1000 property ReadOnly: Boolean read GetReadOnly write SetReadOnly default False; 1001 property ScrollBars: TScrollStyle read GetScrollBars write SetScrollBars default ssNone; 990 1002 end; 991 1003 … … 1658 1670 end; 1659 1671 1672 function TDpiMemo.GetReadOnly: Boolean; 1673 begin 1674 Result := GetNativeMemo.ReadOnly; 1675 end; 1676 1677 function TDpiMemo.GetScrollBars: TScrollStyle; 1678 begin 1679 Result := GetNativeMemo.ScrollBars; 1680 end; 1681 1682 function TDpiMemo.GetWordWrap: Boolean; 1683 begin 1684 Result := GetNativeMemo.WordWrap; 1685 end; 1686 1660 1687 procedure TDpiMemo.SetLines(AValue: TStrings); 1661 1688 begin 1662 1689 GetNativeMemo.Lines := AValue; 1690 end; 1691 1692 procedure TDpiMemo.SetReadOnly(AValue: Boolean); 1693 begin 1694 GetNativeMemo.ReadOnly := AValue; 1695 end; 1696 1697 procedure TDpiMemo.SetScrollBars(AValue: TScrollStyle); 1698 begin 1699 GetNativeMemo.ScrollBars := AValue; 1700 end; 1701 1702 procedure TDpiMemo.SetWordWrap(AValue: Boolean); 1703 begin 1704 GetNativeMemo.WordWrap := AValue; 1705 end; 1706 1707 function TDpiMemo.GetNativeWinControl: TWinControl; 1708 begin 1709 Result := GetNativeMemo; 1663 1710 end; 1664 1711
Note:
See TracChangeset
for help on using the changeset viewer.