forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How to determine page breaks?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sun Jan 24, 2010 3:13 am    Post subject: How to determine page breaks? Reply with quote

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
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Mon Jan 25, 2010 4:03 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Mon Jan 25, 2010 4:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group