Jump to content

PiedSoftware

Members
  • Content Count

    64
  • Joined

  • Last visited

Everything posted by PiedSoftware

  1. PiedSoftware

    Delphi has stopping on break points and exceptions

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

    Delphi has stopping on break points and exceptions

    Thanks. I would hope I can fix the issue with something less drastic than reinstalling. What advantages do you have with 11.3?
  3. PiedSoftware

    Delphi has stopping on break points and exceptions

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

    Delphi has stopping on break points and exceptions

    It's happening again. There must be some other cause. I tried another smaller project. The breakpoints worked a few times and then stopped.
  5. PiedSoftware

    Delphi has stopping on break points and exceptions

    I did clean builds a number of times, and it didn't clear the problem. What made the difference was clearing all the breakpoints, one after the other, the putting back in the one I wanted to use.
  6. PiedSoftware

    Delphi has stopping on break points and exceptions

    I had a look at the list of breakpoints (View | Debug windows | Breakpoint) and I had accumulated a couple of dozen, a number from files that have been removed from the project. I deleted all of them, and put back in the one that I wanted. And now it is great to see my program stopping on the line I have asked it to stop on.
  7. PiedSoftware

    Delphi has stopping on break points and exceptions

    Thanks for the ideas. I looked and it is in debug mode, and the lines do have the blue dots. It must be something else.
  8. 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.
  9. Thanks, Der Schoene Guenter. I didn't know that. I was just looking at regedit.
  10. 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.
  11. Hi This is a preliminary question. We have some functionality on the web and want to be able to set log-on to the web page from the Delphi app, without the log-in credentials being stored by the browser app. Any idea?
  12. PiedSoftware

    Can Delphi set session data in opening a webpage?

    Thanks, microtronix. Are you saying that from Delphi you can open a web page with cookies set in the code, and those cookies are not stored on the filesystem of the client?
  13. 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
  14. Thanks. That would be useful. I have decided to do it differently in this case
  15. The values correspond with values on a database.
  16. PiedSoftware

    Any good replacement for Indy email?

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

    Any good replacement for Indy email?

    Sorry I can't be more specific. The problem is in production and I just do development from home. The problems are not consistent either. It's a bit frustrating.
  18. PiedSoftware

    How do you set no row selected on TDrawGrid?

    Hi With TListBox and TComboBox, if you set ItemIndex to -1, nothing is selected. I tried setting DrawGrid.Row := -1 but that gives an error. Is there some other way to show nothing selected yet?
  19. PiedSoftware

    How do you set no row selected on TDrawGrid?

    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'
  20. PiedSoftware

    How do you set no row selected on TDrawGrid?

    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,
  21. PiedSoftware

    How do you set no row selected on TDrawGrid?

    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,
  22. I am trying to get a reusable TFrame working to use in a number of places in our app to let the users edit and format text in a TJvRichEdit. It consists of a TJvRichEdit and a TJvSpeedBar. The JEDI example code works, and I have copied and pasted the relevant form into the test project where I am developing this frame. But there is a problem in the frame: the colour buttons (Color and Background), which drop down lists of colours in the sample code and change the colour of the text, don't display correctly in the frame. They appear full length but empty, although selecting an item does change the colour of the text. In contrast the Underline button has a drop down list that looks and works fine in my code. The code is essntially the same. I'm initializing the menus in the form's OnShow event, whereas the JEDI sample does it in the form's OnCreaate. There's some strange behaviour in Delphi. If I bring up the Speedbar Designer and select the Color buttons, the list that appears in the Events tab is slightly different between the sample form and my frame, even though they should be the same. In the one that works there is a line for DropDownMenu, with the red font for properties that show up on the events tab. That line is absent from the correpsonding place in my frame. That line does show up for the buttons where the DropDownMenu is nil though. Curious. I'm using Delphi 10.1 Berlin and JCL version 3.50. JvRichEditToolBar.7z
  23. 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.
  24. I have just installed 10.4 Sydney. The problem of the improperly formed colour menus is happening in 10.4 as well.
  25. 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
×