Jump to content

dummzeuch

Members
  • Content Count

    3019
  • Joined

  • Last visited

  • Days Won

    108

Posts posted by dummzeuch


  1. 2 hours ago, PeterPanettone said:

    I clearly said this is for Delphi 12 Athens. Using just a few compiler conditional directives, you can restrict any code to specific newer Delphi versions,

    OK, so, where would you put the IFDEF for this?

    4 hours ago, PeterPanettone said:

    fmCodeSearch.Scaled := True; // Set in Object Inspector

     


  2. 14 hours ago, Ian Branch said:

    P.S.  As this was a Human/AI collaborative effort, who owns the IP?? 😉

    Just assume it's your IP, the company behind the AI will steal it anyway (actually it probably already has, because you pasted it into the chat).

    • Like 2
    • Haha 1

  3. 2 hours ago, John R. said:

    I can't see how Delphi could survive once most of us retire if it doesn't bring "sexy" optimizations and promote them.

    [...] would it be that costly for EMB to hire a full-time developer whose sole task would be to improve performances here and there, and actually blog about it, instead of hiding everything until release for whatever reason ?

    Telling (the right) people about Delphi and how good it is (or rather: was), was something that has not been done since the very beginning. Not even Borland managed that. They advertised in Development magazines (and later websites), but not where those people who make decisions about the money to buy development tools (the C*Os of companies) would read about it. So when a developer asked his boss for the money to buy Delphi related tools, they had to tell him what it is (and who Borland, later Embarcadero is) and what the value would be for the money, because they had never heard these names.

     

    It's even worse nowadays: We see Embarcadero endlessly blubbing on about how great their tools are to developers, but not going into specifics. That's the way you talk to the C*Os of companies, not to developers. But the C*O people do not read these posts because they just don't visit embarcadero.com and the Delphi blogs. So so they still haven't heard these names when it comes to investment decisions. And the developers don't read them because they don't get any interesting information from them.

    • Sad 2

  4. 1 hour ago, Brandon Staggs said:

    I think Embarcadero should force their developers to use their own IDE in a mixed-DPI environment in various configurations and not stop fixing scaling issues until they can do everything seamlessly.

    Hear hear! 

    1 hour ago, Brandon Staggs said:

    Who knows, maybe they already have

    I doubt that very much.

    • Like 2

  5. 1 hour ago, boris.nihil said:

    hello

    is it possible to have 2 or more version of the same dll in application? (ssleay32.dll and libeay32.dll)

    i have some old unit whitch uses openssl dlls from 2005 and i am sending emails with Indy which required openssl dlls from 2019...

    i have set a path for Indy dlls at the program start, initialisation, sslpath...

     

    when i use loadlibrary('') for this 2005. year dll, i cannot send emails enymore with indy, it say 

    "the ordinal 3844 could not be located in the dynamic link library"

     

    You could try to rename the DLLs. I'm not sure whether this will work though. And if it works, it will only do so for DLLs that are used by your program directly, not for DLLs that are loaded by other DLLs your program uses.


  6. Instead of setting a unique name, you can set it to an empty string.

    And what you show in the screen shot is not the memo's name but the memo's Lines property contents. You can set that easily to whatever you want either. Memo.Lines.Text := 'bla blub';

     

    But that's not what was meant when you were told use frames:

     

    Just design a frame the way you want it, and create multiple instances of that particular frame class.


  7. 31 minutes ago, corneliusdavid said:

     

    LOL! That's a great new use for AI coding--use the generated code as a challenge for others to figure out what's wrong!

    To be fair, I asked ChatGPT to generate faulty Delphi code to begin with and it not only gave that code but also immediately explained what is wrong with it and how to fix it. Just that the fix still was wrong.


  8. Adding two empty point series, one associated with each axis, and not shown in the legend, does the trick.

     

    This still feels too much like a hack. So if anybody else has an idea... ?

     

    I used to have an account for Steema's support forum, but my credentials don't seem to work any more.


  9. 1 hour ago, Die Holländer said:

    Is it possible to use the Afterdraw event to force the axis to be visible?

    
    procedure TForm1.Chart1AfterDraw(Sender: TObject);
    begin
      if not Chart1.Axes.Left.Visible then
        Chart1.Axes.Left.Visible := True;
      if not Chart1.Axes.Right.Visible then
        Chart1.Axes.Right.Visible := True;
    end;

     

    Interesting idea, but unfortunately it doesn't work either. I also tried to just set them visible unconditionally and tried the BeforeDrawAxes event.


  10. 1 hour ago, Sherlock said:

    Perhaps draw invisible point belonging to the axis?

    Invisible point? You mean a point series, that is visible but does no contain any data? Or one that contains data but is set to be drawn invisibly?

    I thought about that, but I was really hoping that I am just missing some setting.


  11. Today I have - for the first time - used ChatGPT and then Claude in earnest. Everything before that was just testing. Actually I didn't expect this time to be of much help either, but it turned out that it was helpful up to a point. I have now got some code to give a the guy who applies for a Delphi position today to refactor, debug and explain. And then explain what's wrong with the "fixed" version of the code generated by ChatGPT. That's going to be interesting.

    • Like 2
    • Haha 1

  12. I am using TeeChart for drawing multiple series with two different vertical axis. One set of series uses the left axis, the others use the right axis. The legend contains check boxes that allow the user to turn a series on and off.

    image.thumb.png.a6e5e14522eeb7e5a362145455da3f11.png

     

    Everything works fine but there is one small problem that I can't get solved: When all series associated with one of the axis are turned off, this axis is not shown.

    Right Axis missing:

     

    image.thumb.png.96e9f76bdfc56ef47c422748f1b3207a.png

     

    Left axis missing:

     

    image.thumb.png.20bdc1e34c2f41ff8e7d09383019db5f.png

     

    I don't want that. Both axes should always be shown, regardless of which series are visible. But I found no way to change this behavior. Any hint?

    • Like 1
×