RichEdit (Delphi or C++Builder)

Please discuss general Delphi programming topics here.

RichEdit (Delphi or C++Builder)

Postby N.Y.P.D. » May 24th, 2006, 8:40 am

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)?
N.Y.P.D.
N.Y.P.D.
Active Member
Active Member
 
Posts: 13
Joined: May 15th, 2006, 1:14 pm
Location: Russia Tver

Postby Kambiz » May 24th, 2006, 8:52 am

  1. 1 twip = 1/20 point = 1/1440 inch
    The number of pixels in a twip depends on the device's resolution.
  2. [number of pixels in one twip] = [device dots per inch] / 1440
  3. Look http://forum.delphiarea.com/viewtopic.php?t=741 for the answer.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

[device dots per inch]

Postby N.Y.P.D. » May 29th, 2006, 6:30 am

Kambiz wrote:
  1. 1 twip = 1/20 point = 1/1440 inch
    The number of pixels in a twip depends on the device's resolution.
  2. [number of pixels in one twip] = [device dots per inch] / 1440
  3. 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.
N.Y.P.D.
N.Y.P.D.
Active Member
Active Member
 
Posts: 13
Joined: May 15th, 2006, 1:14 pm
Location: Russia Tver

Postby Johnny_Bit » May 29th, 2006, 11:53 am

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.
Johnny_Bit
VIP Member
VIP Member
 
Posts: 455
Joined: June 15th, 2003, 9:56 am


Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 6 guests

cron