Hi all,
I've created a toolbar with a typein item using hiCreateToolbarTypein(). I want this field's width to change dynamically to accomodate the text I type in there. My approach was to use hiGetTextWidth("label" toolbar->typein_item->value) to calculate the new width (in units of pixel) and to assign this value to toolbar->typein_item->width.
The problem is, that the assignment apparently does not work. I type in CIW:
toolbar->typein_item->width
==> 100
toolbar->typein_item->width = 200
==> 200 (new value returned)
toolbar->typein_item->width
==> 100 (but the old value is actually kept ! )
Does anyone have any suggestions?
Thanks,
Dmitry