Jump to content

Nicolò Blunda

Members
  • Content Count

    33
  • Joined

  • Last visited

Everything posted by Nicolò Blunda

  1. Nicolò Blunda

    SplashForm freeze

    Hello. My app contains many Forms. None Form take a long time to be create and show (i've checked this...). But the app is very slow to open. I've tryed with SplashForm. This code, in .DPR file, works fine (the FormSplash.Close method is inside OnShow method of MainForm). But, SpalshForm seems to be frozen until Main Form is shown: if i insert a TImage with TBitmapListAnimation (to show classical "wait wheel") animation freezes until MainForm close SpashForm. Thank you. BEGIN Application.Initialize; Application.Title:= 'My Slow App'; FormSplash:= TFormSplash.Create(Application); try Application.CreateForm(TFormMain, FormMain); Application.CreateForm(TForm2, Form2); Application.CreateForm(TForm3, Form3); Application.CreateForm(TForm4, Form4); Application.CreateForm(TForm5, Form5); FormSplash.Show; Application.ProcessMessages; finally end; Application.Run; END.
  2. Nicolò Blunda

    SplashForm freeze

    Thank you!
  3. Nicolò Blunda

    SplashForm freeze

    Thank you very much. After a lot of investigation, i see more delay time (5/6 seconds), with NONE form showed (SpalsScreen apart) is cuased ONLY by Application.Run line. The Forms creations take very little time (0,5/0,7 seconds). Main form have two processes with potentially criticity (access to online websercices for autentication), but in different thread. So, I don't understand why the appearance of MainForm take so long time, and i don't know how to show it (as you suggest) with "gray aspect".
  4. Nicolò Blunda

    SplashForm freeze

    Thanks. But I call SplashForm.Close in the MainForm.Show event, NOT MainForm.Close (none sense...). And this works fine, showing SplashForm (freezed) until MainForm is visible. Otherwise, SplashForm colses before the long "blind" time, until MainForm is showed..
  5. Nicolò Blunda

    Devices not compatible GooglePlay

    Hi. My app is compiled with Delphi 12 for Android. Many devices (Tablet) appear NOT compatible in GooglePlay, while, in "Developer" release, APK is perfectly installing and running. Example. Lenovo Tab P11 2nd gen. is compatible, Lenovo Tab P11 PRO 2nd gen is not... It is a targetSdkVersion problem? Thanks
  6. Nicolò Blunda

    SplashForm freeze

    Thank to everyone! I want to emphatize some issues: Long time is effect of Application.run method. Above instruction, in DPR file (Form creation) are very fast. @Dalija Prasnikar: even showing Splash Foam BEFORE other Form creation, it appears, freezed, for very short time. The only way to show it is to insert Close or Free method in MainForm.OnShow event. @DJSox: what method I can use for repaintig Splash Form?
  7. Nicolò Blunda

    SplashForm freeze

    Thank you very much!!!!
  8. Nicolò Blunda

    Universal macOS apps deploy

    Hi. There is a way to pack and deploy universal macOS app, compiled for both INTEL and ARM processors? Actually, I see only way to deploy 2 differents folder/app. Thanks a lot.
  9. Nicolò Blunda

    Universal macOS apps deploy

    Thank you very much!!!!!!!!
  10. Hi. When I open my project, the different views (Windows, macOS, Android 10'') always appear different from the ones I saved before closing the project. The alignment and size of many controls (TPanel, TButtonn, etc...) revert to some values I didn't set. The strange thing is that the FMX files don't seem to change (making a backup doesn't help)... In particular, my Android views are set, by the "Orientation" property of the project, to open ONLY in landscape mode. But, when I open the project, the view is always in portrait mode and, after rotating it, the controls appear in a different position than I set. It's very, very frustrating!
  11. Nicolò Blunda

    Wrong controls position at design time (view don't save)

    Thank you very much. I guess problem is generated from value "scale" in Alignement property inside Master view, necessary to turn responsive Desktop views of application. So, i try set to "none" for this property in Android views. I will say what is effect!
  12. Nicolò Blunda

    macOS SDK

    Hello. There is a way to avoid download all SDK files from macOS (remote) machine if the corrisponding item is (for mistake) deleted from Tools->Optionts->Deployment->Provisioning form? Folder with SDK files is still in my windows development PC. Do configuration file exists to restore pointment to this folder? Thank you.
  13. Nicolò Blunda

    macOS SDK

    Upgrade XCode has erased some file (now, I don't rember name) in mac Library folder, neeeded at linking time. So, I already cleared old SDK profile in Embarcadero and I clear XCode from remote machine. Before install old SDK/XCode (working), and download again files to restore Embarcadero deployment profile, I search to know if this oparation can bypass installation of XCode (my backup machine compile and deploy whit old XCode profile (not erased...).
  14. Nicolò Blunda

    macOS SDK

    Yes, I mean SDK manager (accessible from path I wrote). After upgrade XCode on remote mac I have download new SDK and delete old in SDK manager. But new XCode generate some issue, so I woud like to point to previous (still present in folder of developement machine) without downgrade XCode from remote and re-transefer his files...
  15. Nicolò Blunda

    Form size reduced in macOS

    The MainForm BorderStyle property is now set to the sizable value and all controls are in scale Align property When the app runs on remote macOS (low screen resolution: 1024x768 px, the form run in orginal designed size and resizes instantly to a very small size (see attachs "Original" and "Reduced") The original form has a minimum size of 1050x1000 px, so I expect its size to be larger than the virtual Mac screen, Is this strange behavior replicated with the high resolution Mac screen? Is there a way to show, even on small screen sizes of the remote Mac, the form in her design-time size? Thank you
  16. Nicolò Blunda

    Form size reduced in macOS

    I have find the solution. In MyForm.Create I insert this Constraints.MinWidth := MyForm.Width; Constraints.MinHeight:= MyForm.Height; Note that if MyForm.Position property is set to Designed, this affects only MyForm aspect under Windows OS and not under macOS.
  17. Nicolò Blunda

    Font size in macOS app

    Hi. The font size in my macOS apps (Desktop), for every control (labels, buttons, checkbox text, etc...), appears too large compared to the Windows version. Therefore, the text is often not displayed completely. Is there a way to change the font size in the Style file (read with the TStyleBook component) or is there a workaround? Thanks.
  18. Hello. How can I read runtime current TForm background color from TStyleBook object? I don't find correct syntax to access to StyleContainer inside TStyleBook object (see attach). Thanks.
  19. Nicolò Blunda

    Wrong Form resize in macOS

    HI. I just converted my project to "reactive mode". The MainForm BorderStyle property is now set to the Sizable value and all controls are in "scale" mode (Align property). When the app runs on remote macOS (very poor screen resolution, 1024x768 px), the window resizes to a very small size, smaller than designed. The window has a minimum size of 1050x1000 px, so I expect its size to be larger than the virtual Mac screen. Is this strange behavior replicated with the high resolution Mac screen? Is there a way to show, even on small screen sizes of the remote Mac, the minimum form size (show them at design time)? Thank you.
  20. Hello. DelphiCE is a commercially limited edition, full working (so the specifies says...). I just try to compile my project (build under Delphi 10.3 Professional), and all works fine, 3rth part addon too... But DEBUG environnment does't go working. Running the application in DEBUG mode with F9, main form is not showed (none breakpoint is set!) and StepOver and TraceInto tools are inactives. Is it a CE limitation? Thanks.
  21. Nicolò Blunda

    Debug don't starts in DelphiCE 11

    Thank you very much. Now, all works fine!
  22. Nicolò Blunda

    Debug don't starts in DelphiCE 11

    Found solution. Some wrong lib (for running exe simulation in web browser), for mistake, hase been leave in DEBUG directive.
  23. Hello. To get string versionName value of field inside <manifest> key, in AndroidManifest.xml file, I use this code: function GetFileVersionName: string; var PackageManager: JPackageManager; PackageInfo : JPackageInfo; Begin PackageManager:= SharedActivity.getPackageManager; PackageInfo := PackageManager.getPackageInfo(SharedActivityContext.getPackageName, TJPackageManager.JavaClass.GET_ACTIVITIES); Result := JStringToString(PackageInfo.versionName); End; If the filed is in a meta-data key, inside <activity> section, like this... <meta-data android:name="productName" android:value="HelloWorld" /> how can change above code to retrive it? Thanks.
  24. Nicolò Blunda

    Get metadata string from Manifest

    0 Find the solution! After move <meta-data> key outside <activity> section, code to read value for name="productName" is: function GetProductName: string; var PackManager: JPackageManager; AppInfo : JApplicationInfo; Begin PackManager:= SharedActivity.getPackageManager; AppInfo := PackManager.getApplicationInfo(SharedActivityContext.getPackageName, TJPackageManager.JavaClass.GET_META_DATA); Result := JStringToString(AppInfo.metadata.getString(StringToJString('productName'))); End;
  25. Nicolò Blunda

    FMX Form On maximize event

    Hello. There is a way to detect Form OnMiximize event (to disable SizeGrip in a Status Bar)? I find a lot of pages for OnMiximize detection via TApplication object, but only for VCL developpment...
×