Jump to content

Lajos Juhász

Members
  • Content Count

    986
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by Lajos Juhász

  1. 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
  2. Lajos Juhász

    Android immersive mode / kiosk mode with C++Builder

    You should see how it is done and Delphi and do it in C++ https://github.com/Embarcadero/Android-Kiosk-Mode-FMXTemplate
  3. Lajos Juhász

    Android immersive mode / kiosk mode with C++Builder

    I don't have C++, maybe this can help? https://blogs.embarcadero.com/easily-deploy-advanced-android-kiosk-mode-with-this-firemonkey-template/
  4. Lajos Juhász

    F1 = Permission error

    In Delphi 12.1 if you press F1 on SelectDirectory you get the Rad Studio Topics then select Vcl.FileCtrl.SelectDirectory 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.
  5. Lajos Juhász

    Delphi 12.1 is available

    Maybe your antivirus software deletes it?
  6. Lajos Juhász

    Delphi 12.1 is available

    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.)
  7. Lajos Juhász

    Delphi 12.1 is available

    The page is wrong. I am downloading it and it is 7.2GB.
  8. Lajos Juhász

    D5 data file misread in XE program

    That should not be the issue, shortstring should be compatible with D5 (I have never tested, it is not unicode like string).
  9. Unfortunately only @Marco Cantu could answer if this is the same bug.
  10. Most probably it is a known issue. Here you can read more:
  11. Lajos Juhász

    Bug in TButton with Multi-Line Caption?

    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.
  12. Lajos Juhász

    Pascal script memory management

    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?
  13. Lajos Juhász

    Detect click on calendar in TDateTimePicker

    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.
  14. Lajos Juhász

    Close current form when opening other form

    The main form is the first form created using Application.CreateForm you can create forms before using the normal form constructor.
  15. Lajos Juhász

    Close current form when opening other form

    Close can cause access violation if the form is prematurely freed. Release makes sure that every event is finished before the form is freed.
  16. Lajos Juhász

    Close current form when opening other form

    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.
  17. Lajos Juhász

    Close current form when opening other form

    The correct code would be: // OPEN INPUT SCREEN FOR BOR DOSSIER try inputCheckForm := Tfrm_InputCheck.Create(Self); try inputCheckForm.ShowModal; finally inputCheckForm.Free; Release; // CLOSE THE CURRENT INPUT FORM end; except on E: Exception do DoShowException(E); end; https://docwiki.embarcadero.com/Libraries/Athens/en/Vcl.Forms.TCustomForm.Release
  18. Lajos Juhász

    How do I make a TValue for TBytes ?

    I see no problem to assign a TBytes to TValue. Where you find it impossible? var v: TValue; a: TBytes; begin setLength(a, 3); a[1]:=56; v:=TValue.From<TBytes>(a); ShowMessage(v.AsType<tBytes>[1].ToString); end;
  19. I get this all the time. I was unable to figure out the rule when the IDE does this.
  20. Lajos Juhász

    Hunting a unit reference

    Just do a find in files.
  21. Lajos Juhász

    Delphi 12 does not catch EXCEPTIONS ANYLONGER.

    No. The change was made to follow the Windows standard. Other languages assume or will change the exception masks. That was fragile in previous versions of the Delphi. They made the change to follow other languages and minimalize the possibilities to have problems when calling an external DLL. The price is that we have to adjust our code.
  22. Lajos Juhász

    Delphi 12: MessageDlg doesn't show icons

    MsgDlgIcons[TMsgDlgType.mtInformation]:=TMsgDlgIcon.mdiInformation; MessageDlg('Exiting the Delphi application.', mtInformation, [mbOk], 0, mbOk); You have to System.UITypes into the uses.
  23. Lajos Juhász

    Trouble with installing community edition serial number

    No, mine is the same as yours.
  24. Lajos Juhász

    Trouble with installing community edition serial number

    In my case SLIPFile is empty with an activated Delphi.
×