CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Thread: Canter Text

  1. #1
    Guest

    Canter Text

    How do you center the text on a command button ? I can not see any option.


  2. #2
    Join Date
    Jul 1999
    Location
    Athens, Hellas
    Posts
    769

    Re: Canter Text

    On it's caption property...

    Michael Vlastos
    Automation Engineer
    Company Modus SA
    Development Department
    Athens, Greece

  3. #3
    Guest

    Re: Canter Text

    Still can`t see it !


  4. #4
    Join Date
    May 1999
    Posts
    3,332

    Re: Canter Text

    I am confused. Text on a Command button is centered by default!
    What type of button do you use.


  5. #5
    Join Date
    Jul 1999
    Location
    Athens, Hellas
    Posts
    769

    cEnter and not cAnter !

    Well, fill in the caption property of the command button the text you wish, and it will be centered by default...
    Is that clear?

    Michael Vlastos
    Automation Engineer
    Company Modus SA
    Development Department
    Athens, Greece

  6. #6
    Guest

    Re: Center Text

    Not if it word wraps a long piece of text, then it left justifies.


  7. #7
    Join Date
    May 1999
    Posts
    3,332

    Re: Center Text

    not so, if you set the style property to graphical!


  8. #8
    Guest

    Re: Center Text

    Cheers the first sensible answer.
    Thanks James


  9. #9
    Join Date
    May 1999
    Posts
    3,332

    Re: Center Text

    if you had mentioned that wordwrap problem earlier, you could have avoided quite a few "insensible" answers ;-)


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