Changeset 167 for trunk/Locale.pas
- Timestamp:
- Jun 15, 2019, 12:03:12 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Locale.pas
r123 r167 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 ScreenTools, Messg, ButtonA, Registry, fgl, Directories, DrawDlg ;9 ScreenTools, Messg, ButtonA, Registry, fgl, Directories, DrawDlg, ButtonC; 10 10 11 11 type … … 27 27 28 28 TLocaleDlg = class(TDrawDlg) 29 ButtonFullscreen: TButtonC; 29 30 List: TListBox; 30 31 OKBtn: TButtonA; 31 32 CancelBtn: TButtonA; 33 procedure ButtonFullscreenClick(Sender: TObject); 32 34 procedure CancelBtnClick(Sender: TObject); 33 35 procedure FormCreate(Sender: TObject); … … 101 103 OkBtn.Graphic := GrExt[HGrSystem].Data; 102 104 CancelBtn.Graphic := GrExt[HGrSystem].Data; 105 106 ButtonFullscreen.Graphic := GrExt[HGrSystem].Data; 107 if FullScreen then ButtonFullscreen.ButtonIndex := 3 108 else ButtonFullscreen.ButtonIndex := 2; 103 109 end; 104 110 … … 106 112 begin 107 113 ModalResult := mrOk; 114 end; 115 116 procedure TLocaleDlg.ButtonFullscreenClick(Sender: TObject); 117 begin 118 FullScreen := not FullScreen; 119 ButtonFullscreen.ButtonIndex := ButtonFullscreen.ButtonIndex xor 1; 108 120 end; 109 121 … … 114 126 115 127 procedure TLocaleDlg.FormPaint(Sender: TObject); 128 var 129 S: string; 130 W: Integer; 116 131 begin 117 132 PaintBackground(self, 3, 3, ClientWidth - 6, ClientHeight - 6); … … 124 139 BtnFrame(Canvas, OKBtn.BoundsRect, MainTexture); 125 140 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); 126 149 end; 127 150
Note:
See TracChangeset
for help on using the changeset viewer.