August 21, 201510 yr 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
August 21, 201510 yr You're leaving something out. You're talking about container fields? Buttions? Button bar segments? Layout objects?
August 21, 201510 yr Author oops, thanks Bruce... NOT container fields/layout objects.YES buttons and or button bar seg. Edited August 21, 201510 yr by Dr. Evil
August 21, 201510 yr Author 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!
August 21, 201510 yr 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.
August 21, 201510 yr …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.).
Create an account or sign in to comment