Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2003
    Posts
    891

    Shape object fill color

    Is there a way to "get" the fill color of the shape object?

  2. #2
    Join Date
    Aug 2004
    Location
    Somewhere in Texas, USA
    Posts
    417
    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.
    Attached Files

  3. #3
    Join Date
    Dec 2003
    Posts
    891
    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.

  4. #4
    Join Date
    May 2005
    Posts
    1,115
    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.)

  5. #5
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    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

  6. #6
    Join Date
    Dec 2003
    Posts
    891
    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.

Similar Threads

  1. INFO: Difference between the Media Player Object and the AVI Object
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-29-2002, 02:15 PM
  2. HOWTO: Make a Media Player Object Go Full Screen
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-23-2002, 11:23 AM
  3. Replies: 0
    Last Post: 10-04-2002, 10:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts