Jump to content

Lajos Juhász

Members
  • Content Count

    796
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Lajos Juhász

  1. Unfortunately only @Marco Cantu could answer if this is the same bug.
  2. Most probably it is a known issue. Here you can read more:
  3. 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.
  4. 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?
  5. 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.
  6. 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.
  7. 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.
  8. 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.
  9. 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
  10. 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;
  11. I get this all the time. I was unable to figure out the rule when the IDE does this.
  12. Lajos Juhász

    Hunting a unit reference

    Just do a find in files.
  13. 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.
  14. 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.
  15. Lajos Juhász

    Trouble with installing community edition serial number

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

    Trouble with installing community edition serial number

    In my case SLIPFile is empty with an activated Delphi.
  17. Lajos Juhász

    TFrame versus SubForm

    I don't know what the IDE uses, but it is not usable on a mixed DPI multi monitor systems. I was forced to debug an aplication in such a scenario. Both the application and the IDE failed.
  18. Lajos Juhász

    Delphi 12 Local CHM Documentation

    It is online in read-only mode until the migration is finished. Attention: Embarcadero is migrating its customer bug and feature request reporting portal to a new system. This site will remain accessible as a read only repository. We'll shortly provide information on how to access and report bugs in the new portal. See https://blogs.embarcadero.com/embarcadero-quality-portal-migration/. I get the same image after F1 on that property.
  19. Lajos Juhász

    How to quickly hash growing files

    Why not keep the file locked while writing into it? In that case you have to do the hashing only when the file is done.
  20. Lajos Juhász

    Where is the installer for RAD Studio ?

    The install files are located at my.embarcadero.com (registered products portal).
  21. Lajos Juhász

    Firebird 5.0 with dbExpress (Delphi 12): unknown ISC error 0

    You can try to contact support and ask to open a ticket for dbExpress. As you wrote this is a new feature in Firebird that should be supported.
  22. Lajos Juhász

    TLS v1.3

    Indy is a 3rd party free library. It is not owned or sponsored by Embarcadero. Embarcadero used it in the past, in recent versions it is replaced by Embarcadero implementation in the IDE and RTL.
  23. Lajos Juhász

    REST Web Service

    You should check out https://github.com/danieleteti/delphimvcframework. What's DelphiMVCFramework DMVCFramework is a very popular Delphi framework which provides an easy to use, scalable, flexible RESTful, JSON-RPC and ActiveRecord framework for Delphi developers. DMVCFramework is the most popular Delphi project on GitHub and compiles for Windows (32 and 64bit) and Linux (64bit). DMVCFramework services can be compiled as console application, Windows Service, Linux daemon, Apache module (Windows and Linux) and IIS ISAPI (Windows). DMVCFramework works with Delphi 11 Alexandria, Delphi 10.4 Sydney, Delphi 10.3 Rio, Delphi 10.2 Tokyo, Delphi 10.1 Berlin, Delphi 10 Seattle.
  24. Lajos Juhász

    Help With NetCom7

    Try to add the event handler using the object inspector. Delphi will generate the correct code. Select Server on the form then in Object inspector go to Events and double click on combobox for the OnHandleCommand event. (That is a more traditional way assign events.)
×