Is there a way to "get" the fill color of the shape object?
Professional Software Development Tools
Is there a way to "get" the fill color of the shape object?
I am assuming that since you want to know what the color of the object is then you are allowing the end user the ability to change the color of the object during runtime.
I use the CHCOLOR.DLL (not sure who wrote it, but its great) to do this.
If I miss-understood your question then i'm not sure what you are trying to do.
See attached APZ for example.
Hope this helps.
And a special thanks to who ever wrote the dll.
That's WORM's dll.
Actually, what I want to do is get the color value(s) from a Shape object without having to use a color picker. Even tho the Shape has a color, the app doesn't know the true value of the color.
Most objects have a Get.Properties that outputs a table that the BGColor can be pulled from, but not the Shape plugin.
The color value of a Shape is in Decimal. I can convert a decimal to HEX and RGB. So, if the user clicks on the shape, it sets a variable that I can massage later in the script.
Yeah funny, you can Set stuff, but you can not Get.
Never know what life is gonna throw at you.
(Based on a true story.)
Just use a Paragraph object with no text instead. You can easily set and get the BG colour.
Dermot
I am so out of here
Yeah, that's what I ended up doing.![]()
I wanted to use the shape as it has 1. rounded rectangle, and 2. the border (stroke) can be more than one pixel wide (unlike the para). I was using a four pixel stroke (one normally) on enter to simulate a button. I ended up using a shape behind a para that will stroke out four pixels on enter of the para to get the same effect.
Now i wish i had a color picker i could manually enter the client window coordinates (not screen) to pick instead of mouse movement, with a hex or rgb outputs.
I have a work around, but it's a lot of code.