PtNumeric problem

I have a dialog with couple of PtNumeric widgets. Dialog has buttons “OK”
and “Cancel”. I want to change color of modified numeric widget. So operator
before pushing “OK” button can see which values was changed. Text color of
unmodified values remains black. ( It would be nice to change color to black
if input is modified back to initial value ).

But there is problem:
when I change Pt_ARG_NUMERIC_TEXT_COLOR from Pt_CB_NUMERIC_CHANGED callback
width of PtNumeric is changed on each keystroke when text length exceeds
widgets length. So when I hold even non-numeric key width of PtNumeric
widget is growing without limitation. And widget stretched through entire
window looks like I miss something in my code. It looks like bug.

How can I force PtNumeric widget to don’t change its width?

Make sure that the Pt_RESIZE_FLAGS is set to 0.
BTW: Pt_ARG_NUMERIC_TEXT_COLOR has been deprecated, Pt_ARG_COLOR should be
used instead.
-Misha.

“Martin Michalek” <michalek@procaut.sk> wrote in message
news:c2hgq6$9bl$1@inn.qnx.com

I have a dialog with couple of PtNumeric widgets. Dialog has buttons “OK”
and “Cancel”. I want to change color of modified numeric widget. So
operator
before pushing “OK” button can see which values was changed. Text color of
unmodified values remains black. ( It would be nice to change color to
black
if input is modified back to initial value ).

But there is problem:
when I change Pt_ARG_NUMERIC_TEXT_COLOR from Pt_CB_NUMERIC_CHANGED
callback
width of PtNumeric is changed on each keystroke when text length exceeds
widgets length. So when I hold even non-numeric key width of PtNumeric
widget is growing without limitation. And widget stretched through entire
window looks like I miss something in my code. It looks like bug.

How can I force PtNumeric widget to don’t change its width?