Dynamic Tab Bar Icon

How can I set the tab bar icons programatically.
I can’t set them in the screen’s open or activate events as those don’t fire until they have been presented the first time.

Forum for Xojo Programming Language and IDE. Copyright © 2021 Xojo, Inc.