Jump to content

David Marcus

Members
  • Content Count

    7
  • Joined

  • Last visited

Posts posted by David Marcus


  1. 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?

     


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


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


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

×