KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Programmatically Managing an SVG Object's Response to Mouse Events
PRODUCT: 4D | VERSION: 11.4 | PLATFORM: Mac & Win
Published On: June 11, 2009
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

When programming a 4D SVG image for user interaction the object's response to Mouse Events can be controlled by using the "opacity" value of the "fill" attribute. An object with opacity of less that 10% will not respond to mouse events, therefore you won't get its ID value will when calling SVG Find element ID by coordinates in case of the On Clicked form event. Objects with a fill opacity of 10% or greater do have their user assigned ID returned by SVG Find element ID by coordinates when used in that fashion. See Responding to a User Click on an SVG Image for more information.