Quantcast
Channel: Cadence Community
Viewing all articles
Browse latest Browse all 3331

Changing width of a toolbar typein item

$
0
0

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


Viewing all articles
Browse latest Browse all 3331

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>