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

Thread: Misc

  1. #1
    Join Date
    Apr 2001
    Posts
    6

    Misc

    how do you print text on a shape, i know how to show and hide them but i cant get a command behind a button to print some data on a shape


  2. #2
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: Misc

    you can't do this. A Shape is a control that does not accept text. You can create your own user control to do what you want and in fact, Microsoft.Com has a example of how to do just that. It is a cookbook and takes you from start to finish.
    Go to http://search.microsoft.com/us/SearchMS.asp
    search on "Creating an ActiveX control" (Without the quotes of course). This is a tutorial on creating user Controls. It creates a Control called "ShapeLabel" which uses Shapes and Labels to create your desired effect. The tutorial is quite lengthy but very inclusive. I printed 229 pages but really only needed the first 100 or so.

    John G

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