-
Content Count
33 -
Joined
-
Last visited
Everything posted by Nicolò Blunda
-
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.
-
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".
-
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..
-
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
-
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?
-
Thank you very much!!!!
-
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.
-
Thank you very much!!!!!!!!
-
Wrong controls position at design time (view don't save)
Nicolò Blunda posted a topic in Cross-platform
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! -
Wrong controls position at design time (view don't save)
Nicolò Blunda replied to Nicolò Blunda's topic in Cross-platform
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! -
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.
-
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...).
-
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...
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
Debug don't starts in DelphiCE 11
Nicolò Blunda replied to Nicolò Blunda's topic in Delphi IDE and APIs
Thank you very much. Now, all works fine! -
Debug don't starts in DelphiCE 11
Nicolò Blunda replied to Nicolò Blunda's topic in Delphi IDE and APIs
Found solution. Some wrong lib (for running exe simulation in web browser), for mistake, hase been leave in DEBUG directive. -
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.
-
android Get metadata string from Manifest
Nicolò Blunda replied to Nicolò Blunda's topic in Cross-platform
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; -
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...