Hi!
I would like to simulate a button pressed&released “event” with button icons.
(I’m trying to create a utility with a painted interface).
I tried to display first a “Pressed State” icon then the normal “Unpressed State” icon
with a sleep 0.5 in between. All this in the method which I invoke with SEL_COMMAND.
The problem is that, only the last “object.icon = …” gets executed.
Is there a way to refresh and display different icons in succession in one method?
Any help would be appreciated.
Best Regards
Steve Kozma
Steve Kozma wrote:
I would like to simulate a button pressed&released “event” with button icons.
(I’m trying to create a utility with a painted interface).
I tried to display first a “Pressed State” icon then the normal “Unpressed State” icon
with a sleep 0.5 in between. All this in the method which I invoke with SEL_COMMAND.
The problem is that, only the last “object.icon = …” gets executed.
Is there a way to refresh and display different icons in succession in one method?
See the comments under the question “When do I call flush(),
forceRefresh(), refresh() and update() after a change?” in the FOX FAQ
list, found here:
http://www.fox-toolkit.org/faq.html
I am guessing that you at least want to add a call to FXApp#flush after
the first change (i.e. to the “pressed” state) so that it gets repainted
immediately.
Hope this helps,
Lyle