list of colors in custom properties

Started by david, July 23, 2008, 09:40:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

david

is there a way to choose a color for a shape by a list of colors in the custom properties?  i don't mean a list of strings like "red", "green", etc.  i mean that you can actually see the colors and choose whichever color you want.

for now, in my custom properties in the color option, the user should type a number in order to get the desired color (0 for black, 1 for white etc...)

thanks
David

Visio Guy

Hi David,

There's no color picker option. The only control "choices" are:

Text box
Fixed list drop-down
Editable list drop-down
Calendar
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

david

but there is a fill color button in visio.

is it possible to get from the custom properties the same window you get by clicking the fill color button?

Visio Guy

Nope, not without some very bad, hacky work-arounds that probably aren't worth the trouble.

But you can create a right-mouse menu item (Actions section in ShapeSheet) that calls the Fill dialog using the DOCMD function.
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

mmulvenna

#4
Here is a way to do it with VBA I posted this a while back and use it extensively.
http://visguy.com/vgforum/index.php?topic=84.0

Be sure to scroll all the way down the posts to get the attachments.