button not redrawing w/ icon
Posted: Sat Mar 24, 2012 4:15 pm
Following an earlier inquiry (http://forums.runrev.com/viewtopic.php?f=7&t=11469), I can now cut a snapshot from a hidden image, apply the new image to the icon of a button, and apply some simple graphic effects to the snapshot.
I find that I can set the button's icon first, then apply the graphic filter to produce a high gloss effect. This shows the original snapshot on the button, without the gloss, but when I force a redraw by moving the mouse across the button, or one of many other UI operations, the button updates and it shows the shiny wonder.
How can I force a redraw from the script?
I searched the dictionary high and low but my choice of seemingly intuitive keywords (draw, refresh, redraw, update) lead to no insights.
Initially, I though I should apply the gloss effect first, then assign the glossy image to the button's icon. In this case, I found the button not showing the image at all, it is still in its usual gray.
What's going on here?
I find that I can set the button's icon first, then apply the graphic filter to produce a high gloss effect. This shows the original snapshot on the button, without the gloss, but when I force a redraw by moving the mouse across the button, or one of many other UI operations, the button updates and it shows the shiny wonder.
How can I force a redraw from the script?
I searched the dictionary high and low but my choice of seemingly intuitive keywords (draw, refresh, redraw, update) lead to no insights.
Initially, I though I should apply the gloss effect first, then assign the glossy image to the button's icon. In this case, I found the button not showing the image at all, it is still in its usual gray.
What's going on here?