@ErikWDev That's awesome!

I've run into a problem trying to tie in animation actions. The general problem 
is really how to trigger user defined events associated with a widget and its 
state.

It'd be nice to not have to explicitly know or pass the widgets internal state. 
Something like this:
    
    
    Widget progressBar:
         value: self.value
         setup: box 10.WPerc, 20, 80.WPerc, 2.Em
         actionSlideToValue: triggerValue
    
    ... later in the current widget ...
    
    if button("Click me"):
      triggerValue(newVal) # this will cause progressBar to animate sliding to 
new value
    
    
    Run

The problem is how to bind the `triggerValue` name? It could be a variable 
already declared by the user, but they'd need to know the type, etc.

In some cases the action could just setting a boolean value that the sub-widget 
would use when rendering. Similar to how `onClick` can be use to highlights 
buttons.

Suggestions? 

Reply via email to