Jump to content

David Marcus

Members
  • Content Count

    8
  • Joined

  • Last visited

Everything posted by David Marcus

  1. David Marcus

    My app dies in Server 2019

    Is it GUI or console? If the latter, you can just wrap everything in try..except. JCLDebug in the JCL is another option like EurekaLog or MacExcept.
  2. David Marcus

    Canvas.Font not equal Font?

    The Help for Vcl.Graphics.TCanvas.Font says: "The Canvas.Font property is only guaranteed to equal the Font property if you have an owner-drawn listbox (where you are expected to use the canvas). Even in that case, it is only guaranteed to equal the Font property once the first paint message is underway. If you use a canvas inside an ownerdraw event, everything should work as expected. Using the canvas for a reason outside the scope of its intended usage may give unpredictable results." https://docwiki.embarcadero.com/Libraries/Alexandria/en/Vcl.Graphics.TCanvas.Font What does this mean? If I'm using the Canvas property of a control, do the properties of the Canvas (e.g., Handle, Font) agree with the control's?
  3. I created an app in the IDE running on a 96 DPI monitor. I run the app on a 260 DPI monitor. If I have Delphi autocreate a form, then CurrentPPI in the FormCreate event is the monitor DPI (240). If I create a form in code, then CurrentPPI in the FormCreate event is 96 (and the form then gets resized). This isn't a problem. But, I'm wondering why they are different.
  4. If you think Delphi should have built-in support for stack traces, please vote for https://quality.embarcadero.com/browse/RSP-13347
  5. <sarcasm>Let's remove the table of contents from books to save ink.</sarcasm>
  6. I'm trying to upgrade from Delphi 10.4 to Delphi 11, but Delphi 11 is messing up my forms. Following is one example. I'm not sure if this is the only problem I'm seeing, but it is the first one I boiled down to a simple example. Open FooBase in the IDE, then open Foo. (Files attached.) In Delphi 10.4, the width of GroupBox is 332, but in Delphi 11, it is 64. I have Patch 1 installed. Is this a known problem? David FooFiles.zip
  7. David Marcus

    Width of GroupBox on inherited form changes to default in Delphi 11

    I reported it: RSP-36207. I think setting Scaled to true will break all my forms. At some point, I will change them to work with Scaled equal to True, but I wasn't planning to do it today.
  8. David Marcus

    IdAntiFreeze vs VCL.IdAntiFreeze

    Delphi Pro 10.4.2 has both IdAntiFreeze.pas and VCL.IdAntiFreeze.pas in C:\Program Files (x86)\Embarcadero\Studio\21.0\source\Property Editors\Indy10\. The two files are identical except for the unit name. Why does it have both?
×