Jump to content

Lajos Juhász

Members
  • Content Count

    812
  • Joined

  • Last visited

  • Days Won

    11

Posts posted by Lajos Juhász


  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.


  2. 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.


  3. 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?


  4. 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.)


  5. 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).


  6. 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. 


  7. 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.


  8. 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.


  9. 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.


  10. 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.

×