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. How to display Static Text over 256???

How to display Static Text over 256???

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
8 Posts 5 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
    Surivevoli
    wrote on last edited by
    #1

    :confused:I want to display a Static Text in which its length is larger than 256 character. How must I do ??? Lgx

    D T C H 4 Replies Last reply
    0
    • S Surivevoli

      :confused:I want to display a Static Text in which its length is larger than 256 character. How must I do ??? Lgx

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      What is happening with text longer than 256 characters?


      "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

      "We will be known forever by the tracks we leave." - Native American Proverb

      1 Reply Last reply
      0
      • S Surivevoli

        :confused:I want to display a Static Text in which its length is larger than 256 character. How must I do ??? Lgx

        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #3

        Surivevoli wrote:

        :confused:I want to display a Static Text in which its length is larger than 256 character.How must I do ???

        Increase the size of Static Text Control

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        cheers, Alok Gupta VC Forum Q&A :- I/ IV

        S 1 Reply Last reply
        0
        • S Surivevoli

          :confused:I want to display a Static Text in which its length is larger than 256 character. How must I do ??? Lgx

          C Offline
          C Offline
          Chris Losinger
          wrote on last edited by
          #4

          i think that 256 character limit is due to the resource editor, not to the abilities of the static control itself. try setting the text with m_myStaticControl.SetWindowText("..."); Cleek | Image Toolkits | Thumbnail maker

          1 Reply Last reply
          0
          • S Surivevoli

            :confused:I want to display a Static Text in which its length is larger than 256 character. How must I do ??? Lgx

            H Offline
            H Offline
            Hamid Taebi
            wrote on last edited by
            #5

            you can change font from static control

            S 1 Reply Last reply
            0
            • T ThatsAlok

              Surivevoli wrote:

              :confused:I want to display a Static Text in which its length is larger than 256 character.How must I do ???

              Increase the size of Static Text Control

              "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

              cheers, Alok Gupta VC Forum Q&A :- I/ IV

              S Offline
              S Offline
              Surivevoli
              wrote on last edited by
              #6

              "Increase the size of Static Text Control " Yes I did it, and i saw that Text when i design, But when i compile my program, the compiler display a warning : "title string too long; truncated at 256" and then i runed my program,: only 256 first character is displayed. Why ???

              1 Reply Last reply
              0
              • H Hamid Taebi

                you can change font from static control

                S Offline
                S Offline
                Surivevoli
                wrote on last edited by
                #7

                you wrote"you can change font from static control" how to do that ? could you tell me step by step ?

                H 1 Reply Last reply
                0
                • S Surivevoli

                  you wrote"you can change font from static control" how to do that ? could you tell me step by step ?

                  H Offline
                  H Offline
                  Hamid Taebi
                  wrote on last edited by
                  #8

                  you can declare one font with createfont and then assign this font to control in this parameter from createfont you can set size from font

                  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