Changeset 74 for trunk/Forms/UFormMain.pas
- Timestamp:
- Dec 17, 2016, 6:33:13 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r73 r74 113 113 ToolButton8: TToolButton; 114 114 ToolButton9: TToolButton; 115 procedure AAboutExecute(Sender: TObject); 115 116 procedure ABreakpointToggleExecute(Sender: TObject); 116 117 procedure AExitExecute(Sender: TObject); … … 170 171 UCore, UFormCPU, UFormOptions, UFormMessages, UFormTargets, UFormOutput, UFormInput, 171 172 UFormMemory, UFormSourceCode, UFormTargetCode, UTargetInterpretter, UFormLog, 172 UBFTarget ;173 UBFTarget, UFormAbout; 173 174 174 175 resourcestring … … 187 188 procedure TFormMain.FormShow(Sender: TObject); 188 189 begin 190 // TODO: Transparent image scaling not working properly under linux Gtk2 191 // Also screen DPI is not correctly detected under linux Gtk2 192 {$IFDEF WINDOWS} 189 193 with Core.ScaleDPI do begin 190 194 ApplyToAll(DesignDPI); 191 195 ScaleImageList(ImageListMain, DesignDPI); 192 196 end; 197 {$ENDIF} 198 193 199 Core.CoolTranslator1.Translate; 194 200 LoadFromRegistry(HKEY(Core.ApplicationInfo.RegistryRoot), Core.ApplicationInfo.RegistryKey); … … 503 509 end; 504 510 511 procedure TFormMain.AAboutExecute(Sender: TObject); 512 begin 513 FormAbout := TFormAbout.Create(nil); 514 try 515 FormAbout.ApplicationInfo := Core.ApplicationInfo; 516 FormAbout.CoolTranslator := Core.CoolTranslator1; 517 FormAbout.ShowModal; 518 finally 519 FreeAndNil(FormAbout); 520 end; 521 end; 522 505 523 procedure TFormMain.AProgramPauseExecute(Sender: TObject); 506 524 begin
Note:
See TracChangeset
for help on using the changeset viewer.