Changeset 24 for branches/Xvcl/Xvcl.Kernel.pas
- Timestamp:
- May 8, 2013, 2:53:22 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Xvcl/Xvcl.Kernel.pas
r23 r24 33 33 34 34 TScreen = class(TComponent) 35 Canvas: T Canvas;35 Canvas: TScreenCanvas; 36 36 Size: TPoint; 37 37 Forms: TList<TForm>; 38 38 VideoDevice: TVideoDevice; 39 39 procedure Paint; 40 procedure FocusForm(Form: TForm); 40 41 constructor Create; override; 41 42 destructor Destroy; override; … … 152 153 Forms := TList<TForm>.Create; 153 154 Canvas := TScreenCanvas.Create; 155 Canvas.Screen := Self; 154 156 end; 155 157 … … 159 161 Forms.Destroy; 160 162 inherited; 163 end; 164 165 procedure TScreen.FocusForm(Form: TForm); 166 var 167 I: Integer; 168 FormIndex: Integer; 169 begin 170 FormIndex := Forms.IndexOf(Form); 171 for I := 0 to Forms.Count - 1 do 172 Forms[I].Focused := I = FormIndex; 173 174 Forms.Move(FormsIndex, Forms.Count - 1); 175 Paint; 161 176 end; 162 177
Note:
See TracChangeset
for help on using the changeset viewer.