| View previous topic :: View next topic |
| Author |
Message |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sun Jan 24, 2010 3:13 am Post subject: How to determine page breaks? |
|
|
Ok, using the font Courier at the size of 12, how would I determine where page breaks would be in a multi-line EDIT element?
Or!
Same scenario but using the RICHEDIT from the Object/Element dll of Prakash's? _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Mon Jan 25, 2010 4:03 pm Post subject: |
|
|
The page break character is @chr(12) however to determine or set where to put page breaks to give you that WYSIWYG view you need to use the EM_FORMATRANGE message. This message is only available for the RTF control. Information about EM_FORMATRANGE can be found here http://msdn.microsoft.com/en-us/library/bb788020(VS.85).aspx You have to build a FORMATRANGE structure and pass the address to that structure to the lParam parameter of @Sendmsg(). I will see if I can translate this VB code http://support.microsoft.com/kb/146022 to VDS using Prakash's RICHEDIT control for you. The VB code shows how to use the EM_FORMATRANGE API message to do what I think you are trying to do. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Mon Jan 25, 2010 4:46 pm Post subject: |
|
|
If it shows the page break in the control, then yes, that's what I would love to see.
Thanks a bunch!
~Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
|