News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

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.

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 217 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1107KB.
Tokens: post-login.
Cache hits: 14: 0.00288s for 26,738 bytes (show)
Cache misses: 4: (show)
Queries used: 17.

[Show Queries]