Changeset 445 for GraphicTest/UMainForm.pas
- Timestamp:
- Nov 22, 2012, 1:32:52 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GraphicTest/UMainForm.pas
r444 r445 22 22 ButtonBenchmark: TButton; 23 23 ButtonSingleTest: TButton; 24 CheckBoxEraseBackground: TCheckBox; 25 CheckBoxDoubleBuffered: TCheckBox; 24 26 FloatSpinEdit1: TFloatSpinEdit; 25 27 Label1: TLabel; … … 34 36 procedure ButtonSingleTestClick(Sender: TObject); 35 37 procedure ButtonStopClick(Sender: TObject); 38 procedure CheckBoxDoubleBufferedChange(Sender: TObject); 39 procedure CheckBoxEraseBackgroundChange(Sender: TObject); 36 40 procedure FormCreate(Sender: TObject); 37 41 procedure FormDestroy(Sender: TObject); … … 157 161 end; 158 162 163 procedure TMainForm.CheckBoxDoubleBufferedChange(Sender: TObject); 164 begin 165 DrawForm.DoubleBuffered := CheckBoxDoubleBuffered.Checked; 166 end; 167 168 procedure TMainForm.CheckBoxEraseBackgroundChange(Sender: TObject); 169 begin 170 DrawForm.EraseBackgroundEnabled := CheckBoxEraseBackground.Checked; 171 end; 172 159 173 procedure TMainForm.FormClose(Sender: TObject; var CloseAction: TCloseAction); 160 174 begin … … 243 257 SpinEditWidth.MaxValue := Screen.DesktopWidth; 244 258 SpinEditHeight.MaxValue := Screen.DesktopHeight; 259 CheckBoxDoubleBuffered.Checked := DrawForm.DoubleBuffered; 260 CheckBoxEraseBackground.Checked := DrawForm.EraseBackgroundEnabled; 245 261 end; 246 262 247 263 procedure TMainForm.UpdateFrameSize; 248 264 begin 249 DrawForm.SetBounds(DrawForm.Left, DrawForm.Top, FrameSize.X, FrameSize.Y); 265 DrawForm.ClientWidth := FrameSize.X; 266 DrawForm.ClientHeight := FrameSize.Y; 250 267 GenerateSceneFrames; 251 268 end;
Note:
See TracChangeset
for help on using the changeset viewer.