News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

include image file as part of complex shape, and modify it

Started by dzugel, November 11, 2008, 07:57:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dzugel

I have a shape made up of 4 sub-shapes, 3 text boxes and one image.

Custom properties - linked to an ODBC Excel workbook for data - are updated automatically when the shape is dropped on a page.

I want to update it to add a new customer property, call it Image Name, that will store the name of an external image file that is to be loaded, resized, and made a part of the original shape when it is dropped on a page. The shape needs to retain all its custom properties and remain a complex shape made up of these 4 sub-shapes.

I found and tested a number of examples that allow you to change an image on a page, but so far I've been unsuccessful in loading and associating the new image with a group of sub-shapes while retaining the original custom properties. Can you suggest any way to code this complex behavior? Existing code triggers in the Shape Added routine. 

Thanks.

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 130 (show)
Files included: 32 - 1207KB. (show)
Memory used: 985KB.
Tokens: post-login.
Cache hits: 13: 0.00114s for 26,761 bytes (show)
Cache misses: 2: (show)
Queries used: 16.

[Show Queries]