Jump to content

Lajos Juhász

Members
  • Content Count

    838
  • Joined

  • Last visited

  • Days Won

    11

Posts posted by Lajos Juhász


  1. You should ask this question in FMX (as the question has nothing to do with Delphi IDE).

     

    A short answer is that you would have to implement a component like Synedit (at the moment it is a Windows only). As far as I know there is no such an editor available for cross platform.


  2. 15 minutes ago, KenR said:

    10.4.2 crashes several times a day on large projects for me. I have not yet been brave enough to try them in 11.1

    I believe Delphi 11.1 is a largish step forward in stability. I do not work at the moment on the larger project only on a small one but the internal error after debugging that required restart of the IDE is gone (as far as I can see).


  3. 30 minutes ago, Uwe Raabe said:

    Should be available form your my.embarcadero.com account.

    Uwe you missed that we should not post the link (it was posted earlier in this thread).
     

    On 3/16/2022 at 3:30 PM, Daniel said:

    Folks, please try to avoid posting the direct download links.

    Although these are not hard to guess, in the past there have been requests from Embarcadero not to publish the links.

     


  4. 23 minutes ago, limelect said:

    Is it Delphi that gives me a beautiful day? 

     

    What I think there might have been hidden characters although no reason for it

     

    ..or just the current folder was not the one where the ini file is located.


  5. It's a normal behavior. You should give us more information in order to give us a chance to suggest how could you change the code.

     

    If you really have to use dmAutomatic in that case whenever you would like to cancel the drag operation you have to call the EndDrag method with false of the control (in this case the listbox).


  6. https://docwiki.embarcadero.com/Libraries/Sydney/en/System.Classes.TThread.Suspend

     

    Warning: Suspend is deprecated.

    Pauses a running thread. Suspend was intended to be used by debuggers and is deprecated in RAD Studio XE, in the year 2010.

    Call Suspend to temporarily halt the execution of the thread. To resume execution after a call to Suspend, call Resume. Calls to Suspend can be nested; Resume must be called the same number of times Suspend was called before the thread resumes execution.

    Warning: The Resume and Suspend methods should only be used for debugging purposes. Suspending a thread using Suspend can lead to deadlocks and undefined behavior within your application. Proper thread synchronization techniques should be based on TEvent and TMutex.

     


  7. Edit.text is unicode string so you should not use AnsiStrings for that. I tried your FindWordInTextStrUtils and in D11.1 get no deprecated warning:

    dcc32 command line for "Project1.dpr"
    [dcc32 Hint] Unit1.pas(30): H2164 Variable 's' is declared but never used in 'FindWordInTextStrUtils'
    Success
    Elapsed time: 00:00:00.7


  8. 21 minutes ago, Fons N said:

    Read this page, but not all of the links on this page work. 

     

    Am I just overlooking it, but I cannot seem to read anything about the Parnassus add-ins (specifically Bookmark.)...?

     

    Unfortunately I was able only to find promotion material for decision makers, not technical information for developers. Join the webinar later today and we should learn some information about the Bookmarks.


  9. 5 minutes ago, pyscripter said:

    When I added such a component to a data module in the 11.1 IDE an exception was raised.  It was working fine with 11.0.   Was I making a wrong assumption or is this an Alexandria 11.1 bug?

    It's not documented at https://docwiki.embarcadero.com/RADStudio/Sydney/en/Fields_(Delphi).

     

    PS. I am also in a couple of minutes will  install Delphi 11.1, hopefully I not going to see any new bugs.


  10. {irrelevant code removed}

     

    Most probably is relevant code. We cannot know what is the problem in your code without a simple test case. You're changing the data types of the parameters in your posts. You should post a test application where we can see what are you doing in the function and how you're calling it.


  11. 1 hour ago, PeterBelow said:

    That would be the equivalent of a Delphi Single. Use the good old Move procedure to copy the 4 bytes to a Single variable and pass that to FormatFloat to get a string representation.

    There is no need to copy the bytes using the absolute keyword the array and single can share the memory (like I posted).

×