Button highlighting (too slow?) does not show
Posted: Thu Apr 09, 2015 1:19 pm
(LC 7.0.1 Android 4.4.4)
Click (or tap) on a button starts some extensive database queries in background (3-4 secs), results being prepared on a different card.
To have the button change appearance when tapped I set the colors in mouseup.
on Mouseup
global D, F, L, S
set backColor of me to L["Col_HotButtonBG"]
set foreColor of me to L["Col_HotButtonText"]
lock screen
... do processing and prepare results on card "display" ...
unlock screen
go card "Display"
end Mouseup
This looks straightforward to me, and works in the IDE, but on android the button never changes color, not giving any visual feedback.
I've tried to put a small image (animated gif) on top and show this before the "lock screen", but it only shows in IDE, not on android.
Any hint, as to where I am wrong?
Click (or tap) on a button starts some extensive database queries in background (3-4 secs), results being prepared on a different card.
To have the button change appearance when tapped I set the colors in mouseup.
on Mouseup
global D, F, L, S
set backColor of me to L["Col_HotButtonBG"]
set foreColor of me to L["Col_HotButtonText"]
lock screen
... do processing and prepare results on card "display" ...
unlock screen
go card "Display"
end Mouseup
This looks straightforward to me, and works in the IDE, but on android the button never changes color, not giving any visual feedback.
I've tried to put a small image (animated gif) on top and show this before the "lock screen", but it only shows in IDE, not on android.
Any hint, as to where I am wrong?