How to hook a method to the Edit event in Delphi 7 IDE?
Aternative to writing API or the like is to simply use snapshot views and automatically write files using “Highjack” functionality …then just check’em in later.
Aternative to writing API or the like is to simply use snapshot views and automatically write files using “Highjack” functionality …then just check’em in later.
As reported by the OP, the issue was an incorrect BDS path in the RSVARS.bat file.
FMX use antialiazing for drawing. If you would like draw line without blur effect you should use special function for pixel alignment: TCanvas.AlignToPixel TCanvas.AlignToPixelVertically TCanvas.AlignToPixelHorizontally This functions automatically calculate pixel position for drawing without blur. Thank you
In general one should use layout managers for this purpose. That what they are designed for. Delphi (did not work with it for a long time) does not have such managers but is able to handle different dpi ever since. You have to use the autosize propery of the components to ensure that they have … Read more
Those numbers aren’t completely useless. Let’s say you have classes TA, TB and TC, and TB and TC both derive from TA. The DFMs look like: object A: TA object X: TX end end inherited B: TB object Y: TY end end inherited C: TC object Y: TY [0] end inherited X: TX [1] end … Read more
Global variables are zero-initialized. Variables used in the context of the main begin..end block of a program can be a special case; sometimes they are treated as local variables, particularly for-loop indexers. However, in your example, r is a global variable and allocated from the .bss section of the executable, which the Windows loader ensures … Read more
Former Delphi Product manager Nick Hodges created 30 video demos targeted to those new to Delphi and the object-pascal language. UPDATE 2017: That link is dead, videos can now be accessed thanks to archive.org here. The videos take the viewer through the basics of the IDE, the language, and each demo mostly builds on the … Read more
1. Introduction In this post I’ll try to explain the ScanLine property usage only for 24-bit bitmap pixel format and if you actually need to use it. As first take a look what makes this property so important. 2. ScanLine or not…? You can ask yourself why to use such tricky technique like using ScanLine … Read more
If you declare a method in a descendant class that has the same name as a method in an ancestor class then you are hiding that ancestor method — meaning if you have an instance of that descendant class (that is referenced as that class) then you will not get the behavior of the ancestor. … Read more
The biggest danger of with, outside of pathological conditions like “with A, B, C, D” is that your code can silently change meaning with no notice to you. Consider this example: with TFoo.Create try Bar := Baz; DoSomething(); finally Free; end; You write this code knowing that Bar is a property of TFoo, and Baz … Read more