David Marcus
Members-
Content Count
8 -
Joined
-
Last visited
Everything posted by David Marcus
-
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.
-
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?
-
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.
-
If you think Delphi should have built-in support for stack traces, please vote for https://quality.embarcadero.com/browse/RSP-13347
-
Thoughts on using begin end merely to limit inline var scope.
David Marcus replied to MarkShark's topic in RTL and Delphi Object Pascal
<sarcasm>Let's remove the table of contents from books to save ink.</sarcasm> -
Width of GroupBox on inherited form changes to default in Delphi 11
David Marcus posted a topic in VCL
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 -
Width of GroupBox on inherited form changes to default in Delphi 11
David Marcus replied to David Marcus's topic in VCL
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. -
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?