Home > Community > Forums > Custom IC SKILL > Changing width of a toolbar typein item

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Changing width of a toolbar typein item 

Last post Mon, Jan 14 2013 6:40 AM by Dmitry Babin. 2 replies.
Started by Dmitry Babin 09 Jan 2013 06:05 AM. Topic has 2 replies and 604 views
Page 1 of 1 (3 items)
Sort Posts:
  • Wed, Jan 9 2013 6:05 AM

    • Dmitry Babin
    • Not Ranked
    • Joined on Mon, Jan 26 2009
    • Haifa, Israel
    • Posts 8
    • Points 130
    Changing width of a toolbar typein item Reply

    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

    • Post Points: 20
  • Mon, Jan 14 2013 6:36 AM

    Re: Changing width of a toolbar typein item Reply

    Dmitry,

    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.

    Regards,

    Andrew.

    • Post Points: 20
  • Mon, Jan 14 2013 6:40 AM

    • Dmitry Babin
    • Not Ranked
    • Joined on Mon, Jan 26 2009
    • Haifa, Israel
    • Posts 8
    • Points 130
    Re: Changing width of a toolbar typein item Reply

    Thanks Andrew,

    I'll file an SR.

     

    Dmitry

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by Dmitry Babin at 09 Jan 2013 06:05 AM. Topic has 2 replies.