Changeset 207 for trunk/Forms
- Timestamp:
- May 22, 2018, 9:43:29 AM (7 years ago)
- Location:
- trunk/Forms
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormClient.pas
r206 r207 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls, 9 9 UGame, LCLType, Menus, ActnList, ComCtrls, dateutils, XMLConf, DOM, UCommPin, 10 UGeometry, UGameClient, UGameProtocol ;10 UGeometry, UGameClient, UGameProtocol, UThreading; 11 11 12 12 const … … 231 231 FClient.OnTurnStart := DoTurnStart; 232 232 FClient.OnDestroy := DoClientDestroy; 233 FClient.View.DestRect := TRect.CreateBounds(TPoint.Create(0, 0), TPoint.Create(PaintBox1.Width, PaintBox1.Height)); 233 234 end; 234 235 Redraw; … … 243 244 begin 244 245 TurnActive := True; 245 UpdateInterface;246 Synchronize(UpdateInterface); 246 247 end; 247 248 -
trunk/Forms/UFormMain.pas
r206 r207 149 149 FormClient.ManualDock(PanelMain, nil, alClient); 150 150 FormClient.Align := alClient; 151 FormClient.Show;152 151 end; 153 152 … … 179 178 procedure TFormMain.FormShow(Sender: TObject); 180 179 begin 180 Core.LoadConfig; 181 Core.ScaleDPI; 182 Core.PersistentForm.Load(Self, True); 181 183 Core.Init; 182 184 LoadConfig(Core.XMLConfig1, 'FormMain'); 183 Core.PersistentForm.Load(Self, True);184 185 ReloadView; 186 FormClient.Show; 185 187 end; 186 188 -
trunk/Forms/UFormNew.pas
r199 r207 342 342 ReloadView; 343 343 //Height := Trunc(1.5 * Height); 344 PageControl1.TabIndex := 0;344 //PageControl1.TabIndex := 0; 345 345 end; 346 346
Note:
See TracChangeset
for help on using the changeset viewer.