Jump to content

This topic is 3473 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

You're leaving something out. You're talking about container fields? Buttions? Button bar segments? Layout objects?

Posted (edited)

oops, thanks Bruce...

NOT container fields/layout objects.
YES buttons and or button bar seg.

:B

Edited by Dr. Evil
Posted

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!

Posted

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.

  • Like 1
Posted

…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.).

  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.