- Timestamp:
- Jun 21, 2017, 4:02:31 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.lfm
r74 r81 5 5 Width = 860 6 6 Caption = 'LazFuck' 7 ClientHeight = 5 547 ClientHeight = 561 8 8 ClientWidth = 860 9 9 Menu = MainMenu1 … … 13 13 OnDestroy = FormDestroy 14 14 OnShow = FormShow 15 LCLVersion = '1.6. 0.4'15 LCLVersion = '1.6.4.0' 16 16 WindowState = wsMaximized 17 17 object StatusBarMain: TStatusBar 18 18 Left = 0 19 19 Height = 28 20 Top = 5 2620 Top = 533 21 21 Width = 860 22 22 Panels = < … … 131 131 object PageControlRight: TPageControl 132 132 Left = 467 133 Height = 50 0133 Height = 507 134 134 Top = 26 135 135 Width = 393 … … 141 141 object TabSheetDebug: TTabSheet 142 142 Caption = 'Debug' 143 ClientHeight = 49 4144 ClientWidth = 3 19143 ClientHeight = 499 144 ClientWidth = 359 145 145 object PanelInput: TPanel 146 146 Left = 0 147 147 Height = 64 148 148 Top = 0 149 Width = 3 19149 Width = 359 150 150 Align = alTop 151 151 BevelOuter = bvNone … … 157 157 Height = 5 158 158 Top = 64 159 Width = 3 19159 Width = 359 160 160 Align = alTop 161 161 ResizeAnchor = akTop … … 165 165 Height = 259 166 166 Top = 69 167 Width = 3 19167 Width = 359 168 168 Align = alTop 169 169 BevelOuter = bvNone … … 175 175 Height = 5 176 176 Top = 328 177 Width = 3 19177 Width = 359 178 178 Align = alTop 179 179 ResizeAnchor = akTop … … 183 183 Height = 86 184 184 Top = 333 185 Width = 3 19185 Width = 359 186 186 Align = alTop 187 187 BevelOuter = bvNone … … 193 193 Height = 5 194 194 Top = 419 195 Width = 3 19195 Width = 359 196 196 Align = alTop 197 197 ResizeAnchor = akTop … … 199 199 object PanelMemory: TPanel 200 200 Left = 0 201 Height = 7 0201 Height = 75 202 202 Top = 424 203 Width = 3 19203 Width = 359 204 204 Align = alClient 205 205 BevelOuter = bvNone … … 210 210 object Splitter1: TSplitter 211 211 Left = 462 212 Height = 50 0212 Height = 507 213 213 Top = 26 214 214 Width = 5 … … 218 218 object PanelLeft: TPanel 219 219 Left = 0 220 Height = 50 0220 Height = 507 221 221 Top = 26 222 222 Width = 462 223 223 Align = alClient 224 224 BevelOuter = bvNone 225 ClientHeight = 50 0225 ClientHeight = 507 226 226 ClientWidth = 462 227 227 TabOrder = 4 228 228 object PageControlMain: TPageControl 229 229 Left = 0 230 Height = 3 77230 Height = 384 231 231 Top = 0 232 232 Width = 462 … … 246 246 Left = 0 247 247 Height = 118 248 Top = 38 2248 Top = 389 249 249 Width = 462 250 250 ActivePage = TabSheetMessages … … 261 261 Left = 0 262 262 Height = 5 263 Top = 3 77263 Top = 384 264 264 Width = 462 265 265 Align = alBottom -
trunk/Forms/UFormMain.pas
r74 r81 207 207 UpdateTargetList; 208 208 DockInit; 209 Core.PersistentForm1.Load(Self );209 Core.PersistentForm1.Load(Self, wsMaximized); 210 210 end; 211 211 -
trunk/LazFuck.lpi
r78 r81 2 2 <CONFIG> 3 3 <ProjectOptions> 4 <Version Value=" 9"/>4 <Version Value="10"/> 5 5 <PathDelim Value="\"/> 6 6 <General> -
trunk/Packages/Common/UPersistentForm.pas
r74 r81 26 26 FormWindowState: TWindowState; 27 27 Form: TForm; 28 DefaultFormWindowState: TWindowState; 28 29 procedure LoadFromRegistry(RegistryContext: TRegistryContext); 29 30 procedure SaveToRegistry(RegistryContext: TRegistryContext); 30 31 function CheckEntireVisible(Rect: TRect): TRect; 31 32 function CheckPartVisible(Rect: TRect; Part: Integer): TRect; 32 procedure Load(Form: TForm; Default Maximized: Boolean = False);33 procedure Load(Form: TForm; DefaultFormWindowState: TWindowState = wsNormal); 33 34 procedure Save(Form: TForm); 34 35 constructor Create(AOwner: TComponent); override; … … 56 57 I: Integer; 57 58 WinControl: TWinControl; 58 Count: Integer;59 59 begin 60 60 if Control is TListView then begin … … 135 135 + FormRestoredSize.Top; 136 136 // Other state 137 FormWindowState := TWindowState(ReadIntegerWithDefault('WindowState', Integer( wsNormal)));137 FormWindowState := TWindowState(ReadIntegerWithDefault('WindowState', Integer(DefaultFormWindowState))); 138 138 finally 139 139 Free; … … 216 216 end; 217 217 218 procedure TPersistentForm.Load(Form: TForm; DefaultMaximized: Boolean = False); 219 var 220 LoadDefaults: Boolean; 218 procedure TPersistentForm.Load(Form: TForm; DefaultFormWindowState: TWindowState = wsNormal); 221 219 begin 222 220 Self.Form := Form; 221 Self.DefaultFormWindowState := DefaultFormWindowState; 222 223 223 // Set default 224 224 FormNormalSize := Bounds((Screen.Width - Form.Width) div 2, … … 230 230 231 231 if not EqualRect(FormNormalSize, FormRestoredSize) or 232 ( LoadDefaults and DefaultMaximized) then begin232 (FormWindowState = wsMaximized) then begin 233 233 // Restore to maximized state 234 234 Form.WindowState := wsNormal; -
trunk/UCore.pas
r77 r81 104 104 LastOpenedList.LoadFromRegistry(RegContext(Root, Key + '\' + RecentFilesRegKey)); 105 105 Targets.LoadFromRegistry(Root, Key); 106 PersistentForm1.RegistryContext := RegContext(Root, Key + '\Forms');106 PersistentForm1.RegistryContext := RegContext(Root, Key); 107 107 end; 108 108
Note:
See TracChangeset
for help on using the changeset viewer.