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

Post Reply
User avatar
AndyMac
Posts: 148
Joined: Wed Sep 05, 2018 6:16 pm
Location: Wirral UK
Contact:

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

Post 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 3073 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.
Cherry Dan
Site Admin
Posts: 256
Joined: Fri Jul 27, 2018 5:36 pm

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

Post 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
User avatar
AndyMac
Posts: 148
Joined: Wed Sep 05, 2018 6:16 pm
Location: Wirral UK
Contact:

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

Post by AndyMac »

Sorted using this - thanks, now it is a bit clearer in terms of what happens in what order.
Post Reply

Return to “Module Designer”