Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Official 4.0 Beta Discussion Thread
Dean,

I know you're busy with the eve of the 4.0 release, but I think I'm one of those people that got bit by the 3.4.30 template event handler action commands.

I have a bunch of macros running in both the Template OnPreload Action (working fine) and in the Events...Event Driven Action. These also work fine because they are still (illegally) coded, but I can't edit them because you took the MacroEng::RunMacro out.

Is there a reason it's unsafe to run Macros out of an event driven action?

-AJ
That's pretty heavy to be running from a template event, because the foreground is locked out while they are running. What are you needing to do in there? Or are you putting it there because you don't want to duplicate the logic? If so, remember that there are also now Global Actions which I think you can still invoke from in there, right?

So if you could do it as action level logic instead of macro logic, you could still have it in one place and invoke it from multiple places. Would that work for you?
Dean Roddey
Explorans limites defectum
I have 25 values that are in int fields. I need to convert them from a 0-100 range to a 0-255 range then convert them to string type to place into the SetOpacity action. I think it could be done with Local Variables and 3-4 steps each, but I never got it to work so I created a macro instead to do it in 2 steps per field/widget.

Global actions won't work because I need access to all the widgets I am setting the opacity for.
Are you invoking a macro over and over, or are you calculating the values and returning them all at once and then setting them on the widgets? I assume it must be the latter since you can't access the widgets from the macro. If so, you couldn't you just invoke the global action repeatedly instead to do the calculation for each one, then set the returned value to that widget?
Dean Roddey
Explorans limites defectum


Possibly Related Threads...
Thread Author Replies Views Last Post
  Official 5.4 Beta Discussion Thread Dean Roddey 441 40,418 06-15-2019, 02:33 AM
Last Post: Bugman
  Official 5.4 Beta Release Thread Dean Roddey 55 7,299 06-07-2019, 07:02 PM
Last Post: Dean Roddey
  Official 5.3 Beta Discussion Thread Dean Roddey 815 151,110 07-05-2018, 12:44 PM
Last Post: Dean Roddey
  Official 5.3 Release Thread Dean Roddey 27 7,898 07-05-2018, 12:44 PM
Last Post: Dean Roddey
  Official 5.2 Beta Discussion Thread Dean Roddey 244 87,585 10-14-2017, 07:57 PM
Last Post: Dean Roddey
  Official 5.2 Beta Release Thread Dean Roddey 13 8,797 10-09-2017, 06:49 PM
Last Post: Dean Roddey
  Official 5.1 Beta Discussion Thread Dean Roddey 453 196,383 05-16-2017, 03:45 PM
Last Post: Dean Roddey
  Official 5.1 Beta Release Thread Dean Roddey 28 19,444 05-12-2017, 05:44 PM
Last Post: Dean Roddey
  Official 5.0 Beta Discussions Dean Roddey 2,019 488,963 11-09-2016, 04:34 PM
Last Post: Dean Roddey
  Official 5.0 Beta Release Thread Dean Roddey 15 13,266 11-01-2016, 10:32 AM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)