Dr. Evil Posted August 21, 2015 Posted August 21, 2015 Is it possible to dynamically set a FM .svg icon?ex. case value = 0; svgIconStarWHITE; svgIconStarBLACK Looking to take advantage of the new .svg feature. I'm currently just using character "charms" to accomplish this.Using the data formatting "boolean" option, show zero ☆ ; non zero ★ But this is limited to a small group of silly characters and most don't have a comparable black vs. white version. For example, I would like to use a heart icon but can't using charms. Any ideas on this? Thanks
bruceR Posted August 21, 2015 Posted August 21, 2015 You're leaving something out. You're talking about container fields? Buttions? Button bar segments? Layout objects?
Dr. Evil Posted August 21, 2015 Author Posted August 21, 2015 (edited) oops, thanks Bruce... NOT container fields/layout objects.YES buttons and or button bar seg. Edited August 21, 2015 by Dr. Evil
Dr. Evil Posted August 21, 2015 Author Posted August 21, 2015 Any Mickey Mouse workarounds come to mind on how to solve this? I'm open to using container fields and layout objects. Thank you so much!
Claus Lavendt Posted August 21, 2015 Posted August 21, 2015 No workarounds. However, if you are using FM supported SVG files, you can change the color of the icon, based on conditional formatting. This can take you some of the way... If you want to replace the entire icon, you need to other techniques, which could be to have conditional hide on buttonbar segments or use of container fields. However, SVG files is not supported in container fields, so if you go that route, you will need to create e.g. png versions of your icons. 1
comment Posted August 21, 2015 Posted August 21, 2015 SVG files is not supported in container fields Unlike web viewers...
Mark Scott Posted August 21, 2015 Posted August 21, 2015 …which could be to have conditional hide on buttonbar segments… This is the way I would approach it, Dr. Evil. It retains the benefits of button glyphs (state-specific styling, etc.). 1
Recommended Posts
This topic is 3473 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now