Changeset 88 for trunk/Forms/UFormMain.pas
- Timestamp:
- Aug 29, 2017, 10:33:39 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r83 r88 39 39 AProjectOpen: TAction; 40 40 ActionList1: TActionList; 41 ImageListMain: TImageList;42 41 MainMenu1: TMainMenu; 43 42 MenuItem1: TMenuItem; … … 189 188 procedure TFormMain.FormShow(Sender: TObject); 190 189 begin 191 // TODO: Transparent image scaling not working properly under linux Gtk2 192 // Also screen DPI is not correctly detected under linux Gtk2 193 {$IFDEF WINDOWS} 194 with Core.ScaleDPI do begin 195 ApplyToAll(DesignDPI); 196 ScaleImageList(ImageListMain, DesignDPI); 197 end; 198 {$ENDIF} 199 200 Core.CoolTranslator1.Translate; 190 Core.Init; 201 191 LoadFromRegistry(HKEY(Core.ApplicationInfo.RegistryRoot), Core.ApplicationInfo.RegistryKey); 202 192 PageControlMain.TabIndex := 0; … … 520 510 FormAbout.ApplicationInfo := Core.ApplicationInfo; 521 511 FormAbout.CoolTranslator := Core.CoolTranslator1; 512 Core.ScaleDPI1.ScaleControl(FormAbout, Core.ScaleDPI1.DesignDPI); 522 513 FormAbout.ShowModal; 523 514 finally
Note:
See TracChangeset
for help on using the changeset viewer.