Changeset 68 for trunk/IDE/Forms
- Timestamp:
- Jul 30, 2012, 3:52:56 PM (12 years ago)
- Location:
- trunk/IDE/Forms
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE/Forms/UFormMain.lfm
r66 r68 5 5 Width = 695 6 6 Caption = 'Transpascal IDE' 7 ClientHeight = 4 767 ClientHeight = 482 8 8 ClientWidth = 695 9 9 Font.Height = -11 … … 20 20 Left = 0 21 21 Height = 5 22 Top = 47 122 Top = 477 23 23 Width = 695 24 24 Align = alBottom … … 89 89 object ComboBoxTarget: TComboBox 90 90 Left = 230 91 Height = 2 791 Height = 21 92 92 Top = 2 93 93 Width = 100 94 ItemHeight = 094 ItemHeight = 13 95 95 OnChange = ComboBoxTargetChange 96 96 Style = csDropDownList … … 105 105 object Splitter1: TSplitter 106 106 Left = 490 107 Height = 3 39107 Height = 345 108 108 Top = 26 109 109 Width = 5 … … 113 113 object PageControlRight: TPageControl 114 114 Left = 495 115 Height = 3 39115 Height = 345 116 116 Top = 26 117 117 Width = 200 … … 137 137 Left = 0 138 138 Height = 101 139 Top = 37 0139 Top = 376 140 140 Width = 695 141 141 ActivePage = TabSheetMessages … … 155 155 Left = 0 156 156 Height = 5 157 Top = 3 65157 Top = 371 158 158 Width = 695 159 159 Align = alBottom … … 162 162 object PageControlMain: TPageControl 163 163 Left = 0 164 Height = 3 39164 Height = 345 165 165 Top = 26 166 166 Width = 490 -
trunk/IDE/Forms/UFormMain.pas
r66 r68 7 7 uses 8 8 SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, 9 ComCtrls, ExtCtrls, SynEdit, SynHighlighterPas, 9 ComCtrls, ExtCtrls, SynEdit, SynHighlighterPas, Registry, 10 10 UProject, FileUtil, Menus, ActnList, DateUtils, 11 UFormTargetCode, UFormCodeTree, U GeneralRegistry;11 UFormTargetCode, UFormCodeTree, URegistry; 12 12 13 13 type … … 146 146 procedure ProducerProcessOutput(Text: string); 147 147 public 148 procedure LoadFromRegistry(Root: Integer; const Key: string);149 procedure SaveToRegistry(Root: Integer; const Key: string);148 procedure LoadFromRegistry(Root: HKEY; const Key: string); 149 procedure SaveToRegistry(Root: HKEY; const Key: string); 150 150 procedure OpenRecentClick(Sender: TObject); 151 151 function GetSource(Name: string; var SourceCode: string): Boolean; … … 402 402 end; 403 403 404 procedure TFormMain.LoadFromRegistry(Root: Integer; const Key: string);405 begin 406 with T GeneralRegistry.Create(nil)do404 procedure TFormMain.LoadFromRegistry(Root: HKEY; const Key: string); 405 begin 406 with TRegistryEx.Create do 407 407 try 408 CurrentRoot:= Root;408 RootKey := Root; 409 409 OpenKey(Key, True); 410 410 if ValueExists('RightPanelWidth') then … … 419 419 end; 420 420 421 procedure TFormMain.SaveToRegistry(Root: Integer; const Key: string);422 begin 423 with T GeneralRegistry.Create(nil)do421 procedure TFormMain.SaveToRegistry(Root: HKEY; const Key: string); 422 begin 423 with TRegistryEx.Create do 424 424 try 425 CurrentRoot:= Root;425 RootKey := Root; 426 426 OpenKey(Key, True); 427 427 WriteInteger('RightPanelWidth', PageControlRight.Width); … … 477 477 begin 478 478 AProjectClose.Execute; 479 Core.SaveToRegistry( Integer(Core.ApplicationInfo.RegistryRoot), Core.ApplicationInfo.RegistryKey);479 Core.SaveToRegistry(HKEY(Core.ApplicationInfo.RegistryRoot), Core.ApplicationInfo.RegistryKey); 480 480 end; 481 481 … … 503 503 procedure TFormMain.FormShow(Sender: TObject); 504 504 begin 505 Core.LoadFromRegistry( Integer(Core.ApplicationInfo.RegistryRoot), Core.ApplicationInfo.RegistryKey);505 Core.LoadFromRegistry(HKEY(Core.ApplicationInfo.RegistryRoot), Core.ApplicationInfo.RegistryKey); 506 506 DockInit; 507 507 Core.ProjectTemplatesInit;
Note:
See TracChangeset
for help on using the changeset viewer.