Jump to content

PiedSoftware

Members
  • Content Count

    65
  • Joined

  • Last visited

Posts posted by PiedSoftware


  1. I think I may have solved the problem. 
    Somehow the normal run button got replaced with the Run without debugging button. So far the best explanation is that when I had the problem was when I ran the program by hitting the Run button, and when it ran fine it was because I hit F9. I don't remember changing it, and I don't remember whether I hit F9 or the button each time I had breakpoints or not, But, now I am back in happy land.


  2. On 9/15/2023 at 1:21 PM, Pat Foley said:

    More checks

     The provenance (path) of used units found in hint box showing when mousing over tabs over unit tabs in code window or control tabs on the component bar.    

      

    Then the transactions in .proj.local can be looked at.  These transactions log when units renamed or who knows. 

      

    Try syntax check or build all from time to time can't hurt!

    I see the correct file names in the popup hint over the tabs for each unit.
    If the syntax was wrong it wouldn't even build and run. I am doing Build fairly frequently.


  3. Hi


    I have a break point, but when I run the procedure it is in the code is going right past it and putting up a message a few lines down. 
     

    Also, I had a bug where the code was throwing an exception, the exception dialog would come up, but the debugger didn't stop at the relevant line.

    I have been googling and poking around in the settings but nothing has shown up that would make it stop at the line. I have deleted and recreated the break point, rebooted my machine, and it looks as if Delphi is broken, but I hope not!

     

    This is Delphi 10.4, building for windows32.


  4. On 6/14/2023 at 5:14 PM, Der schöne Günther said:

    In the Windows registry at

     

    Computer\HKEY_CURRENT_USER\Software\Embarcadero\BDS\xx.y\History Lists\hlRunParameters

     

    where xx.y is the RAD Studio version(s) you are using

    I went looking for hlRunParameters and found 
    HKEY_USERS\S-1-5-21-1617574381-1279492827-4212147271-1000\SOFTWARE\Embarcadero\BDS\21.0\History Lists\hlRunParameters

     

    and one other place with that long number, but none with the nice simple name in your post.


  5. Hi

     

    In Delphi, under Run | Parameters, is a drop down list of the history of runtime parameters. I can see the top one, the one that currently applies, in the .dproj file, but I have looked in all the files with the same name as the project but different extension, and I did not see the other command lines. Where are they stored? They seem to be based on the installation of Delphi, not the project.


  6. Hi

     

    I have been using a generic record to convert combo-boxes to enumerated type. But Delphi spits the dummy if the type has any numbers specified.

    For example with this code the compiler throws up the error message "E2134 Type 'TDDArrangementId' has no type info. In the generic type TypeInfo(T) returns nil.

    type
      TDDArrangementId = (daOutstanding = 1, daWeeklyGap, daAmount, daGapAmount);
    ...
    
    procedure Test;
    var ti: PTypeInfo;
    begin
      ti := TypeInfo(TDDArrangementId);


    But removing the " = 1" makes  it all build and run just fine.

    Can anyone confirm that Delphi's rtti system simply does not handle enumerated types if they are not zero-based?

    I'm using 10.4
    ---
    Mark


  7. Hi

     

    We are having trouble with the Indy email components. They don't seem to work well with current email systems. We are getting failures, and false negatives resulting in multiple copies being sent.

    Can anyone recommend a good replacement library? Or give better advice?

    Regards
    Mark


  8. On 7/21/2021 at 2:00 AM, Remy Lebeau said:

    Set the Selection property to a TGridRect containing all -1's.

    
    var
      gr: TGridRect;
    
    gr.Left := -1;
    gr.Right := -1;
    gr.Top := -1;
    gr.Bottom := -1;
    
    DrawGrid.Selection := gr; 

      


    Thanks, that is the way I went and it had the desired effect on the appearance.

    At first I tried to use a constant:

    const
      EmptyRect: TGridRect = (Left: -1; Top: -1; Right: -1; Bottom: -1); // Copied from implementation of vcl.grids
    
    procedure TGridDataRtti<T>.PopulateGrid(...);
    begin
     ...
      grid.Selection := EmptyRect; 
     end;


    But that gave me the spurious error message:
     E2506 Method of parameterized type declared in interface section must not use local symbol 'EmptyRect'

     


  9. On 7/20/2021 at 5:46 PM, dummzeuch said:

    You can't. What you can do is do the drawing yourself (isn't that necessary for TDrawGrid anyway?)


    There are some default things set, like font colour and background colour, and I am trying to stay as close to the defaults as I can,


  10. 2 hours ago, dummzeuch said:

    You can't. What you can do is do the drawing yourself (isn't that necessary for TDrawGrid anyway?)


    There are some default things set, like font colour and background colour, and I am trying to stay as close to the defaults as I can,


  11. Ah, thanks! I missed those two lines. I just added the 2 lines you highlighted into the constructor of my frame, and it worked 
     

        ColorMenu.ItemPainter := TJvXPColorMenuItemPainter.Create(Self);
        BackgroundMenu.ItemPainter := TJvXPColorMenuItemPainter.Create(Self);



    "You set the ColorMenu.Style to msOwnerDraw but then you don't implement the OnDrawItem and OnMeasureItem."
    That was not it.


  12. Hi

     

    We has a library for generating Nevrona reports from script files that we right. The main function we use for outputting  data in text form to the report is TBaseReport.PrintLeft. When a string with HTML for formating is passed to that function, the formating is all stripped out and the bare text is displayed.

    Is there a way to display text using any HTML formating?

    TIA
    Mark

×