-
Content Count
37 -
Joined
-
Last visited
Posts posted by Nicolò Blunda
-
-
Hi.
There is a way to detect, from a FMX application for macOS, the computer (and OS) architecture Intel or ARM ?
-
Find solution.
Method "Append" instead "Add" can include new item at the top of drop list. -
Hi.
I would like to sort the elements in a ComboEdit in the exact order of typing.
That is... the combo should save the typing history of the inserted elements, with the last element in first position and so on...
I don't see the sorted property to set the order of all the elements/items, which are, by default, sorted alphabetically.
How can I do that? -
1 hour ago, Dalija Prasnikar said:I misinterpreted your post.
However, if you do that, then you must not call Free on SplashForm, but FreeAndNil and then check whether it is nil before calling Close. You could also just call FreeandNil in the MainForm.Show event as releasing the form would also free it.
OnShow event can be triggered more than once and freeing the form without niling the reference would mean that you are accessing dangling pointer which can crash your application. FreeAndNil can be safely called on nil reference so you wouldn't have issues with that.
Thank you!
-
18 hours ago, Rollo62 said:Perhaps using threads might help, to keep animations flowing.
But to be honest, I really would rather skip the whole SplashScreen idea at all, especially with animations.
Even using threads might get into nightmares, not worth the efford at all, for example splash screens might stay invisible, behind other processes etc.
From my experience, splash screens are a call for problems only.
It might confuse, en-nerve your users, waiting for something usable showing up.
My preferred strategy, if that is possible ( not always can be done like this ), show the main entry page as soon as possible in a greyed out manner maybe plus "loading ..." label,
and lazy-load the rest of the app afterwards.
This gives a much better, responsible user experience IMHO, which is not interruppted or cluttered by splash-screens, which always felt to be too long.
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". -
21 hours ago, Dalija Prasnikar said:If the form is not completely painted, then you should call Application.ProcessMessages. The need to have that can depend on the controls and code you have on the splash form. Animation will depend on message processing, so using animation in splash form is not advisable. (I missed that part in your initial post). If you insist on having animation, then you would have to call Application.ProcessMessages more frequently, like @DJSox proposed, but the animation might not be smooth depending on how much time is needed for constructing each form.
Calling MainForm.Free (or Close depending on the code) will destroy the main form. Not to mention that even closing in OnShow would prevent main form from becoming visible, so this is not something you should be doing at all. It does not serve any purpose.
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..-
1
-
-
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!!!!
-
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!!!!!!!!
-
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. -
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 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! -
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...). -
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! -
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... -
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. -
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.
-
1
-
-
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 -
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.
-
-
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. -
Thank you very much.
Now, all works fine! -
Found solution.
Some wrong lib (for running exe simulation in web browser), for mistake, hase been leave in DEBUG directive.
Get OS Intel/Arm from code
in Cross-platform
Posted
Thanks a lot!!!