CorelDraw VBA Tracking Active Color on Palette. Palette_OnClick

Hi all, new here, and have found so many qusetions answered here and Oberon - thank YOU. I do have a question though.

I have a toolbar with macros to open and close different palettes. Each palette represents a type of fabric. The company I work for has certain colors in certain fabrics, so in order to restrict the user from choosing a color we don't have, we thought we would have a different palette for each fabric (yes, it could get out of hand with the number of palettes).

What I want to do is track the active shape/curve on the document, and then the color that is active/selected on the palette. Or maybe a palette_OnClick as my access mind would think. Through that, I can query against a database and get information that I would like to store in the ObjectData of the shape, specifically a MaterialID.

I have tried phrasing this all sorts of different ways in Google and am not finding solutions. ActiveColor on the Palette, OnClick of Palette, "Color Clicked"

Let me know what you guys think!

Zeke