Lajos Juhász
-
Content Count
813 -
Joined
-
Last visited
-
Days Won
11
Posts posted by Lajos Juhász
-
-
It really depends how many Delphi versions you have to support. The change is documented and was made to make life easier to integrate with other programming languages. Mora information:
https://dalijap.blogspot.com/2023/09/coming-in-delphi-12-disabled-floating.htmlhttps://docwiki.embarcadero.com/RADStudio/Athens/en/Floating_Point_Operation_Exception_Masks
-
A more details could help. One solution can be to place a panel onto the form where you place your UI controls. If the record is lock set the enabled proprty of the panel to false.
-
It was a request to change the exception to a proper message before Embarcadero included it in D12. Unfortunately the answer was it is a known limitation of Delphi.
- 1
-
The paint method is to paint on the canvas not to set a property value.
-
During the Paint method you have to handle csPaintCopy in ControlState (you can check in Vcl.DBCtrls).
- 1
-
The IDE can be strange from time to time. I have a unit that I cannot edit it. If you try to add a property the editor will jump to another line. The only way to edit is to paste the text from another editor. I have tried to create a sample project to reproduce the bug and report it and failed. When I copy the class that fails in the text project I cannot reproduce the bug.
-
-
In D12.1 the units I have tested the color is changed after 0-15 seconds.
-
3 minutes ago, Lars Fosdal said:You can't really declare strings in .dfms as 'Text'#32'Text', can you?
The ide will generate
object Label1: TLabel
Left = 303
Top = 233
Width = 99
Height = 15
Caption = #1058#1086' '#1073#1077' '#1086#1088' '#1085#1086#1090' '#1090#1086' '#1073#1077
end
-
You should see how it is done and Delphi and do it in C++ https://github.com/Embarcadero/Android-Kiosk-Mode-FMXTemplate
-
I don't have C++, maybe this can help? https://blogs.embarcadero.com/easily-deploy-advanced-android-kiosk-mode-with-this-firemonkey-template/
-
In Delphi 12.1 if you press F1 on SelectDirectory you get the Rad Studio Topics then select
The system will open a docwiki page: https://docwiki.embarcadero.com/Libraries/Updates/en/Vcl.FileCtrl.SelectDirectory
with the content:
Permission error
You do not have permission to read this page, for the following reason:
The action you have requested is limited to users in one of the groups: writer, l10n, RADBeta, ConnectBeta, Employee.
-
8 minutes ago, rudy999 said:OK, I am able to attempt to install now, but back to the original error where installation continues and 'registering entries' and copying files to ..\Embarcadero\Studio\23.0 but fails to install bds.exe. Looking at the 23.0\bin folder - folder structure folders and files are there but NOT bds.exe?! I see bds.* files but not that one...
Any help is appreciated
Maybe your antivirus software deletes it?
-
1 minute ago, shineworld said:So to get the new 12.1 I've to uninstall and reinstall all by zero?
1] I have got a lot of manually installed 3rd part libraries (13, ... uh...).
2] What happens with the Installation counter? Do they take into account that I've uninstalled it?1.) Usually the uninstall asks if you want to remove registry entries - you should choose not to do so and everything should stay.
2.) It should not increase the installation counter.
(I am going to test the upgrade process tomorrow or during the weekend.)
-
The page is wrong. I am downloading it and it is 7.2GB.
- 1
-
9 minutes ago, giomach said:I suspect the trouble is the type declaration string[32]. When the data file was created (D5), this would have been an old-style string, and moreover the encoding would have been Windows 1252. How can I make XE interpret these strings correctly (if that is what is wrong)?
That should not be the issue, shortstring should be compatible with D5 (I have never tested, it is not unicode like string).
-
-
Most probably it is a known issue. Here you can read more:
-
You can solve this problem, set Wordwrap to true.
It is event documented:
Vcl.StdCtrls.TButton.WordWrap inherits from Vcl.StdCtrls.TButtonControl.WordWrap. All content below this line refers to Vcl.StdCtrls.TButtonControl.WordWrap.
Specifies whether the button text wraps to fit the width of the control.
Set WordWrap to true to allow the display of multiple lines of text. When WordWrap is true, text that is too wide for the control wraps at the right margin.
Set WordWrap to false to limit the text to a single line. When WordWrap is false, text that is too wide for the control appears truncated.
-
You cannot do achieve that in safe manner. For example:
var
t: TStringList;
begin
t:=TstringList.create;
t.Free;
end;
How you are going to know if t is freed or not?
-
You are setting the date to today thus after the user clicks to reset the value will remain. Change the code to:
procedure TForm1.btnResetClick(Sender: TObject); begin DateTimePicker1.Format:=' '; DateTimePicker1.Date:=0; end;
Now it will change when the user clicks on the today.
-
15 hours ago, dummzeuch said:The main form of an application is defined as the first form it creates and that cannot be changed easily.
The main form is the first form created using Application.CreateForm you can create forms before using the normal form constructor.
-
3 minutes ago, Remy Lebeau said:Whereas Close() merely closes the Form, allowing it to be reopened at a later time if desired.
Close can cause access violation if the form is prematurely freed. Release makes sure that every event is finished before the form is freed.
-
23 minutes ago, Lainkes said:My program starts with a small login screen where user credentials are needed.
When the login is succesful the main form appears.
But the login screen is still visible behind the mainform until the mainform is closed.
How can I close the login screen directly when the main form is showed.
You should code this in different way. You can find an example at https://www.thoughtco.com/display-a-login-password-dialog-1058469 unfortunately the code formatting is not correct but you can see the idea.
Delphi 12.1 Android API 34 - not support architecture
in General Help
Posted
Compile the fmx application for windows 32 platform. (Unfortunately) The (only) most stable platform to debug delphi application.