BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

WYSIWYG

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
Ron Sawyer
Guest





PostPosted: Wed Oct 06, 2004 1:27 pm    Post subject: WYSIWYG Reply with quote



What is the best mapping mode for a WYSIWYG drawing package?

Can anyone point me to a tutorial on WYSIWYG drawing?

Thanks


Back to top
Hans Galema
Guest





PostPosted: Wed Oct 06, 2004 3:48 pm    Post subject: Re: WYSIWYG Reply with quote



Ron Sawyer wrote:

Quote:
What is the best mapping mode for a WYSIWYG drawing package?

Can anyone point me to a tutorial on WYSIWYG drawing?

WYDIWYS

What you draw is what you see.

Now after having drawn something and after having looked at it, maybe
then you want to print the result. And then you wonder what you get ?
Where is the problem ?

Please explain also what you would map and what a drawing package
is.

Hans.

Back to top
Ron Sawyer
Guest





PostPosted: Wed Oct 06, 2004 8:12 pm    Post subject: Re: WYSIWYG Reply with quote



The physical coordinate system for the screen and for printers are vastly
different. In order to provide a method of mapping a logical device
coordinate system (device independent) to a physical device coordinate
systems, MS has provided a set of API calls. SetMapMode allows for the
following modes:
MM_ANISOTROPIC
MM_HIENGLISH
MM_HIMETRIC
MM_ISOTROPIC
MM_LOENGLISH
MM_LOMETRIC
MM_TEXT
MM_TWIPS
I will leave it to you to look up their meanings. It is common to use
SetWindowExt (and the SetWindowExtEx) and SetViewportExt coupled with
SetMapMode in drawing tools to set up a logical coordinate system to allow
for easy device independent drawing, and also allow other features like
zooming.

I originally used ANISOTROPIC and created a coordinate system that mirrored
an 8.5X11 page. This worked well, but is of course limited to printing on
an 8.5X11 piece of Paper. I am thinking that I may want to use ANISOTROPIC,
but mimic TWIPS, since TWIPS are 1/20 of a printer point. That may be how I
proceed if no one more knowledgeable than myself shows up to point me to
nice tutorial.


"Hans Galema" <dontusethis (AT) dontusethis (DOT) nl> wrote

Quote:
Ron Sawyer wrote:

What is the best mapping mode for a WYSIWYG drawing package?

Can anyone point me to a tutorial on WYSIWYG drawing?

WYDIWYS

What you draw is what you see.

Now after having drawn something and after having looked at it, maybe
then you want to print the result. And then you wonder what you get ?
Where is the problem ?

Please explain also what you would map and what a drawing package
is.

Hans.



Back to top
Hans Galema
Guest





PostPosted: Thu Oct 07, 2004 1:20 pm    Post subject: Re: WYSIWYG Reply with quote

Ron Sawyer wrote:

Quote:
The physical coordinate system for the screen and for printers are vastly
different.

If that is the case, then when does it matter ? If you use TCanvas and
TPrinter::Canvas you can draw in the same way. Resolution and available
fonts can/will differ.

You can also draw to one canvas and finally copy it to another and
also resize it.

Quote:
In order to provide a method of mapping a logical device
coordinate system (device independent) to a physical device coordinate
systems, MS has provided a set of API calls. SetMapMode allows for the
following modes:
MM_ANISOTROPIC
MM_HIENGLISH
MM_HIMETRIC
MM_ISOTROPIC
MM_LOENGLISH
MM_LOMETRIC
MM_TEXT
MM_TWIPS
I will leave it to you to look up their meanings.

That was not a good idea. I did not do that.

Quote:
It is common to use
SetWindowExt (and the SetWindowExtEx) and SetViewportExt coupled with
SetMapMode in drawing tools to set up a logical coordinate system to allow
for easy device independent drawing, and also allow other features like
zooming.

You know more of that then I do. But have a look at drawing at TCanvas,
as it makes coding easy. I think that what you want depends also of the
way you bring your drawings to a printer.

Quote:
I originally used ANISOTROPIC and created a coordinate system that mirrored
an 8.5X11 page. This worked well, but is of course limited to printing on
an 8.5X11 piece of Paper.

But if these dimensions are fixed then I would start to make them adjustable.

Quote:
I am thinking that I may want to use ANISOTROPIC,
but mimic TWIPS, since TWIPS are 1/20 of a printer point. That may be how I
proceed if no one more knowledgeable than myself shows up to point me to
nice tutorial.

I wonder where you need a tutorial for. It seems to me that you are a pro.
Isn't the help enough ? Would it make your code different if you changed
from MM_ANISOTROPIC to MM_TWIPS ? If not then you can easily test all the
available mappingmodes.

Hans.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) 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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.