Changeset 178 for branches/highdpi/Locale.pas
- Timestamp:
- Jun 23, 2019, 3:15:29 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/Locale.pas
r167 r178 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 ScreenTools, Messg, ButtonA, Registry, fgl, Directories, DrawDlg, ButtonC;9 ScreenTools, Messg, ButtonA, Registry, fgl, Directories, DrawDlg, UDpiControls; 10 10 11 11 type … … 27 27 28 28 TLocaleDlg = class(TDrawDlg) 29 ButtonFullscreen: TButtonC; 30 List: TListBox; 29 List: TDpiListBox; 31 30 OKBtn: TButtonA; 32 31 CancelBtn: TButtonA; 33 procedure ButtonFullscreenClick(Sender: TObject);34 32 procedure CancelBtnClick(Sender: TObject); 35 33 procedure FormCreate(Sender: TObject); … … 103 101 OkBtn.Graphic := GrExt[HGrSystem].Data; 104 102 CancelBtn.Graphic := GrExt[HGrSystem].Data; 105 106 ButtonFullscreen.Graphic := GrExt[HGrSystem].Data;107 if FullScreen then ButtonFullscreen.ButtonIndex := 3108 else ButtonFullscreen.ButtonIndex := 2;109 103 end; 110 104 … … 112 106 begin 113 107 ModalResult := mrOk; 114 end;115 116 procedure TLocaleDlg.ButtonFullscreenClick(Sender: TObject);117 begin118 FullScreen := not FullScreen;119 ButtonFullscreen.ButtonIndex := ButtonFullscreen.ButtonIndex xor 1;120 108 end; 121 109 … … 126 114 127 115 procedure TLocaleDlg.FormPaint(Sender: TObject); 128 var129 S: string;130 W: Integer;131 116 begin 132 117 PaintBackground(self, 3, 3, ClientWidth - 6, ClientHeight - 6); … … 139 124 BtnFrame(Canvas, OKBtn.BoundsRect, MainTexture); 140 125 BtnFrame(Canvas, CancelBtn.BoundsRect, MainTexture); 141 142 RFrame(Canvas, ButtonFullscreen.Left - 1, ButtonFullscreen.Top - 1,143 ButtonFullscreen.Left + 12, ButtonFullscreen.Top + 12, MainTexture.clBevelShade,144 MainTexture.clBevelLight);145 146 s := Phrases.Lookup('SETTINGS', 0);147 LoweredTextOut(Canvas, -2, MainTexture, ButtonFullscreen.Left + 32,148 ButtonFullscreen.Top - 4, s);149 126 end; 150 127
Note:
See TracChangeset
for help on using the changeset viewer.