Page 1 of 1

Possible Bug: Icon/Image Generated when Publishing not reflecting actual screen at time

Posted: Wed Mar 20, 2019 3:02 pm
by AndyMac
I have a number of modules where I am having to layer images on top (specifically over the custom use of the Digital Counter), hiding them at the end of Initialising the module - in an attempt to make the icon/image and image used when dragging the module appear correct and without the "noise" of the Digital Counter's default behaviour for this. I am potentially able to make them completely blank, but this does not "tell the whole story" for the user.

I have tried a number of different approaches, variously moving items to/from the front/back or showing/hiding items. In each of these cases, the generated image used in publishing does not fully reflect this. See the attached screen grab.
Example of Problem.jpg
Example of Problem.jpg (90.57 KiB) Viewed 3147 times
Eventually worked out a way that seems reliable which involved using text fields which I could then set to be null by default and which were changed only at the point of the first screen refresh! It is not clear at what point the image is being generated for the store, etc. and therefore can be difficult if not impossible to get this to be consistent.

No longer a major issue, but something that it would be good to have looked at.

Re: Possible Bug: Icon/Image Generated when Publishing not reflecting actual screen at time

Posted: Wed Mar 20, 2019 8:17 pm
by Cherry Dan
Andy,

Are you setting the counters to actual values in the Initialize() function? If you are, then in theory those values should be correct in the screenshot image. If you're only setting the counters in a thread after the module is initialized, consider adding calls to your Initialize() function to set default strings for these displays.

Thanks,
Dan

Re: Possible Bug: Icon/Image Generated when Publishing not reflecting actual screen at time

Posted: Thu Mar 21, 2019 8:19 am
by AndyMac
Sorted using this - thanks, now it is a bit clearer in terms of what happens in what order.