OWLNext 7.0
Borland's Object Windows Library for the modern age
|
You can use three different units of measurement in a gadget window:
It is usually best to use layout units. Because they are based on the font size, you do not have to worry about scaling your measures when you change window size or system metrics.
If you need to convert layout units to pixels, use the TGadgetWindow::LayoutUnitsToPixels function:
The units parameter is the layout unit measure you want to convert to pixels. LayoutUnitsToPixels returns the pixel equivalent of units.
You can also convert a TMargins object to actual pixel measurements using the GetMargins function: