Re: [Lazarus] TFont.size
On Friday 01 May 2009 22:35, Felipe Monteiro de Carvalho wrote: Hello, Does anyone the difference between TFont.Height and TFont.Size? It seams to me that Height is measured in pixels and Size is some other unit which I don't know. Even worse, it doesn't seam to be an international system unit, but rather an american unit (some fraction of inches). The Delphi docs say: Use Size to specify the point size of the font. If the value is negative, the internal leading that appears at the top of each line of text is included. If the value is positive, Size represents the height of the characters but not the internal leading. To determine the size of the font in pixels, use the Height property instead. The value of Size can be obtained from the height in pixels using this formula: Copy Code Font.Size = -Font.Height * 72 / Font.PixelsPerInch When the Size property has a positive value, the Height property has a negative value. When the Height property has a positive value, the Size property has a negative value. A rather exoteric property IMHO. Or yet another Windowsism in Delphi No, it's not Windowsism, qt have the same thing on all platforms. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Specification for TWinControl.SetShape
Hello, What is the exact specification for TWinControl.SetShape (bitmap version) ? (for custom shaped windows) I certified that black pixels are opaque and white pixels are fully transparent, but what about other colors? What is defined for them? Simply a recomendation not to use, as each platform may behave differently? Also, I assume that only full transparency or fully opaque is supported, and the bitmap cannot be used to make an Alpha transparent window, is that correct? thanks, -- Felipe Monteiro de Carvalho ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Specification for TWinControl.SetShape
Felipe Monteiro de Carvalho wrote: Hello, What is the exact specification for TWinControl.SetShape (bitmap version) ? (for custom shaped windows) I certified that black pixels are opaque and white pixels are fully transparent, but what about other colors? What is defined for them? Simply a recomendation not to use, as each platform may behave differently? Nothing. You must use black/white 2 color mask. Also, I assume that only full transparency or fully opaque is supported, and the bitmap cannot be used to make an Alpha transparent window, is that correct? Yes. Best regards, Paul Ishenin. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus