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. Inserting dynamic text onto graphic

Inserting dynamic text onto graphic

Scheduled Pinned Locked Moved C / C++ / MFC
game-devcryptographytutorialquestion
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.
  • S Offline
    S Offline
    stub
    wrote on last edited by
    #1

    I need to be able to take a canned graphic of a form and be able to dynamically insert text items such as name and address onto the graphic and then send the information to a printer. An example of this would be like a kid's game where the kid enters their name at the beginning of the game and then at certain points during the game, they can print out a certificate or card that has that name on it. Can anybody steer me in the right direction? I'm developing under MSVC 6.0. Thanks in advance. Stub

    B 1 Reply Last reply
    0
    • S stub

      I need to be able to take a canned graphic of a form and be able to dynamically insert text items such as name and address onto the graphic and then send the information to a printer. An example of this would be like a kid's game where the kid enters their name at the beginning of the game and then at certain points during the game, they can print out a certificate or card that has that name on it. Can anybody steer me in the right direction? I'm developing under MSVC 6.0. Thanks in advance. Stub

      B Offline
      B Offline
      Big Art
      wrote on last edited by
      #2

      Use a static text control over top of the image and change the value dynamically as needed. You will need to overide OnCtlColor(..) and draw the background of the static control transparent. Art

      S 1 Reply Last reply
      0
      • B Big Art

        Use a static text control over top of the image and change the value dynamically as needed. You will need to overide OnCtlColor(..) and draw the background of the static control transparent. Art

        S Offline
        S Offline
        stub
        wrote on last edited by
        #3

        Many thanks for the reply Art. Sounds like a workable solution that shouldn't be too cumbersome to implement.

        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