Click to See Complete Forum and Search --> : Misc


azura107
April 12th, 2001, 05:38 AM
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

John G Duffy
April 12th, 2001, 12:01 PM
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