How to select default fill color?

Started by Nikolay, December 11, 2020, 10:26:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nikolay

How do I select default fill color (programmatically?). This button's color "main" color I mean:


Surrogate

#1
А ви с какой целью интересуетесь ?
Why you ask? (c)

Nikolay

Because i think there may be a simple way to do that, but i may be just not aware of it..
recently had to do some eyedrop picking and copying hex colors, so thinking maybe some tool can be made to simplify this.

Croc

Perhaps this is stored in the registry. Look here or near

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Visio\Toolbars\MruColors]
"1359"=dword:fe8f95d9
"1404"=dword:ffc07000
"1385"=dword:feffffff   <-----------

Nikolay

#4
This is a bit too extreme...  :) Also does no look usable at runtime unfortunately. I was hoping for something like
Application.DefaultFillColor = color

Croc

GestureFormat doesn't work either?
Debug.Print ActiveDocument.GestureFormatSheet.Cells("Fillforegnd").ResultIU

Nikolay

#6
I have not tried, but this is something i hoped for! Sounds really promising. Will try.

-- update --
tried it, seems to have no effect unfortunately:

ActiveDocument.GestureFormatSheet.Cells("FillBkgnd")= 2