CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2008
    Posts
    61

    Arrow Why doesn't we always use a fixed mapping mode, why to change it?

    I find that it is so difficult to master it because it's so confusing.

  2. #2
    Join Date
    Feb 2005
    Posts
    2,160

    Re: Why doesn't we always use a fixed mapping mode, why to change it?

    I find your question even more confusing. Please provide some context.

  3. #3
    Join Date
    Jun 2008
    Posts
    61

    Re: Why doesn't we always use a fixed mapping mode, why to change it?

    I mean why must change from MM_TEXT to MM_LOENGLISH or something. Change mapping mode then translate window origin and viewport origin, ...
    It is so confusing.

    I think MM_TEXT itself is easy to use, client area is positive in both axis. so why must use negative values?
    0 ----------->x+
    |
    |
    |
    V
    y+

    thank you.

  4. #4
    Join Date
    Feb 2005
    Posts
    2,160

    Re: Why doesn't we always use a fixed mapping mode, why to change it?

    I'm betting this goes way back. Probably has to do with the way western languages are written on paper, then later on printing presses, then typewriters, teletypes, then CRT's, and finally modern monitors. We start in the upper left and work our way across then down and across again.

    Did you have a question, or was this just a rant?

  5. #5
    Join Date
    Feb 2010
    Posts
    30

    Re: Why doesn't we always use a fixed mapping mode, why to change it?

    my wild guess is that to give the programmer the choice of text editor type of programming or the graphics type of programming. the origin to the letter/note is upper left where as the virtual world is the center of the screen.I feel more comfortable to mathematically find center myself a lot easier too

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured