RichEdit (Delphi or C++Builder)

Posted:
May 24th, 2006, 8:40 am
by N.Y.P.D.
Dear programmers!!!
Try to answer to my questions.
1. What is twips and how many pixels in one twip?
2. How to convert twips to pixels in Delpi or C++Builder?
3. How to get LineSpacing, SpaceAfter, SpaceBefore in paragraph of RichEdit (Delphi or C++Builder)?
[device dots per inch]

Posted:
May 29th, 2006, 6:30 am
by N.Y.P.D.
Kambiz wrote:- 1 twip = 1/20 point = 1/1440 inch
The number of pixels in a twip depends on the device's resolution. - [number of pixels in one twip] = [device dots per inch] / 1440
- Look http://forum.delphiarea.com/viewtopic.php?t=741 for the answer.
2. How to get [device dots per inch] for device, which is called monitor(or screen or thing, where we everyday see - i don't now the exact name)?
3.
viewtopic.php?t=741 Here is how to set line spacing, but i need how to (!!!) GET line spacing and space before and space after paragraph.

Posted:
May 29th, 2006, 11:53 am
by Johnny_Bit
2. getdevicecaps + monitor handle or use global Screen variable
3. analogically, use get instead of set and query for it.
funny is that every bit of it is cleared out in help available freelly to anyone in delphi's help menu.