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 = 200
==> 200 (new value returned)
==> 100 (but the old value is actually kept ! )
Does anyone have any suggestions?
I don't believe this is currently possible - other than recreating the toolbar item. You should contact customer support so that an enhancement CCR can be filed.