Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. WYSIWYG Setup

WYSIWYG Setup

Scheduled Pinned Locked Moved C / C++ / MFC
comquestiondiscussionworkspace
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Larry J Siddens
    wrote on last edited by
    #1

    Just Thinking out loud. Using that test code that I posted (posted over at www.codeguru.com), (I changed the mapping mode to MM_TWIPS and associated the rich edit with the printer) and created a new file. Created one text box, one line and placed the line on it. I then did a Print Preview and noticed where the line fell. I then saved the file, went to a different system running a different resolution and operating system. Ran the same program openning the same file. The text did exactly like it did before; BUT, when I did a print preview, the line was at the exact same location. I wonder if to make something WYSIWYG from the display to the printer, is to make the display look like the printer! Using the MM_ANISOTRIPIC (or MM_ISOTROPIC), getting the printer's resolution and size (both in the vert/horz) and making the screen look the same way. So, when you draw a line/box/text on the screen, it will be placed in the same location and length as on the printer! Any thoughts? Anyone? Larry J. Siddens Cornerstone Communications TAME THE DOCUMENT MONSTER www.unifier.biz

    A 1 Reply Last reply
    0
    • L Larry J Siddens

      Just Thinking out loud. Using that test code that I posted (posted over at www.codeguru.com), (I changed the mapping mode to MM_TWIPS and associated the rich edit with the printer) and created a new file. Created one text box, one line and placed the line on it. I then did a Print Preview and noticed where the line fell. I then saved the file, went to a different system running a different resolution and operating system. Ran the same program openning the same file. The text did exactly like it did before; BUT, when I did a print preview, the line was at the exact same location. I wonder if to make something WYSIWYG from the display to the printer, is to make the display look like the printer! Using the MM_ANISOTRIPIC (or MM_ISOTROPIC), getting the printer's resolution and size (both in the vert/horz) and making the screen look the same way. So, when you draw a line/box/text on the screen, it will be placed in the same location and length as on the printer! Any thoughts? Anyone? Larry J. Siddens Cornerstone Communications TAME THE DOCUMENT MONSTER www.unifier.biz

      A Offline
      A Offline
      Anthony_Yio
      wrote on last edited by
      #2

      You need to get the actual DPI uses in both monitor and printer to achive WYSIWYG. Usually a 14" 800x600 monitor uses 72 DPI which somehow defer on manufacturers. The printers however usually in the 300, 600, 1200 and etc. Just my opinion. Sonork 100.41263:Anthony_Yio

      L 1 Reply Last reply
      0
      • A Anthony_Yio

        You need to get the actual DPI uses in both monitor and printer to achive WYSIWYG. Usually a 14" 800x600 monitor uses 72 DPI which somehow defer on manufacturers. The printers however usually in the 300, 600, 1200 and etc. Just my opinion. Sonork 100.41263:Anthony_Yio

        L Offline
        L Offline
        Larry J Siddens
        wrote on last edited by
        #3

        What I was thinking ( and I could be out in left field, or right ) was to use the MM_ANISOTRIPIC and set up the screen in the same manner (resolution/size) as the printer and use the ScaleViewportExtEx (I think that is the method name) to zoom in/out. Does that sound about like it? Larry J. Siddens Cornerstone Communications TAME THE DOCUMENT MONSTER www.unifier.biz

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups