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
  1. Home
  2. Other Discussions
  3. Article Writing
  4. Color and Font Manipulation

Color and Font Manipulation

Scheduled Pinned Locked Moved Article Writing
help
4 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.
  • R Offline
    R Offline
    RahulOP
    wrote on last edited by
    #1

    Hello, Am looking for something that allows me to manipulate displayed text. This is what I am doing 1.To the dialog, I add a Static Text 2.Chage the ID to IDC_xyz 3.Add a member variable for this IDC 4.Display text using this member variable Now what I want to do is manipulate the font and color so that it looks more colorful or bigger!! But I cant seem to find anything. I had a look at CCreditsCtrl but it throws a Run-Time error. Since I am a newbie at this,was hoping someone could help me out.

    M 1 Reply Last reply
    0
    • R RahulOP

      Hello, Am looking for something that allows me to manipulate displayed text. This is what I am doing 1.To the dialog, I add a Static Text 2.Chage the ID to IDC_xyz 3.Add a member variable for this IDC 4.Display text using this member variable Now what I want to do is manipulate the font and color so that it looks more colorful or bigger!! But I cant seem to find anything. I had a look at CCreditsCtrl but it throws a Run-Time error. Since I am a newbie at this,was hoping someone could help me out.

      M Offline
      M Offline
      Michael P Butler
      wrote on last edited by
      #2

      I've used CLabel for years[^] to do this kind of thing in MFC Michael CP Blog [^] Development Blog [^]

      R 1 Reply Last reply
      0
      • M Michael P Butler

        I've used CLabel for years[^] to do this kind of thing in MFC Michael CP Blog [^] Development Blog [^]

        R Offline
        R Offline
        RahulOP
        wrote on last edited by
        #3

        Ok now I know I am going to make a complete fool of myself. I had a look at CLabel .The problem is that the Static Text has to be mentioned before initialisation itself on the Dialog Box. I dont want tht. Basically I am writing an edcational program so I want to display dynamically generated text and it is the same text that I want to modify. Thank you for your help anyway.

        R 1 Reply Last reply
        0
        • R RahulOP

          Ok now I know I am going to make a complete fool of myself. I had a look at CLabel .The problem is that the Static Text has to be mentioned before initialisation itself on the Dialog Box. I dont want tht. Basically I am writing an edcational program so I want to display dynamically generated text and it is the same text that I want to modify. Thank you for your help anyway.

          R Offline
          R Offline
          RahulOP
          wrote on last edited by
          #4

          Ok, I figured out how to use CLabel for my program. However I dont quite know how to use the SetLoadCursor(LoadCursor.....). I keep getting c2664(if I remember correctly) which says that it cannot convert parameter 2 fm int to ..... The thing is that I add the hand.cur to the Resource under the Cursor resource and then pass it as the 2nd parameter. . Am i doing something wrong? -- modified at 7:37 Wednesday 25th January, 2006

          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