I’m using PhaB to design a Photon (GUI) app that does real-time data
displays. I use a PtTimer at 50 Hz to update a bunch of PtText widgets on a
form, each displaying a floating point number that is always changing.
In order to make the decimal points allign and stay at the same position,
I’d prefer to make the text boxes right-justified (rather than the default:
left). OK - no big deal. Trouble is, when I do this, I get a kind of
beat-frequency blinking going on through the updating numbers. If I change
back to left-justified, I see no blinking. I also tried center-justified: it
also blinks.
I have played with about every property on the PtText widgets to make this
blinking problem go away - but to no avail.
Anyone got a work-around for this phenomenon?
Regards,
Jay Marchetti
Pittsburgh Firmware
This is a wild guess, but it might have something to do with
clipping. If you are not already, could you upgrade to
the latest 114 release (114A, I believe), and see what happens?
I will be back on Tuesday, so I will try and reproduce it then.
It might be either a font manager or library issue. Either
way, my current evaluation of the issue is a shot in the dark.
Thank you.
Jay Marchetti <marchetti@pittsburghfirmware.com> wrote:
I’m using PhaB to design a Photon (GUI) app that does real-time data
displays. I use a PtTimer at 50 Hz to update a bunch of PtText widgets on a
form, each displaying a floating point number that is always changing.
In order to make the decimal points allign and stay at the same position,
I’d prefer to make the text boxes right-justified (rather than the default:
left). OK - no big deal. Trouble is, when I do this, I get a kind of
beat-frequency blinking going on through the updating numbers. If I change
back to left-justified, I see no blinking. I also tried center-justified: it
also blinks.
I have played with about every property on the PtText widgets to make this
blinking problem go away - but to no avail.
Anyone got a work-around for this phenomenon?
Regards,
Jay Marchetti
Pittsburgh Firmware