AutoCAD LT General Discussion

AutoCAD LT General Discussion

Reply
Valued Contributor
c.dufrene
Posts: 51
Registered: ‎04-26-2012
Message 1 of 4 (313 Views)
Accepted Solution

Ribbon Combo Box display size

313 Views, 3 Replies
05-30-2012 06:24 AM

Hi,

 

I'd like to understand to logic behind code "NaN" which controls the size of a combo box.

I found 2 of those combo boxes with the same value but the onscreen size is different...

 

But perhaps you have another way for me to have dim's style in my ribbon ?

 

Regards.

 

 

I'm not sure what the "NaN" is for, but if you are wanting to make the box smaller play around with different numbers instead of "NaN."  (e.g. 150)  Those spaces are for the width of the box in pixels. 

NaN: Not a Number, it allows the CUI to resize as it sees fit without you entering a number (usually too wide I found).

Valued Mentor
bgingerich
Posts: 276
Registered: ‎08-29-2011
Message 2 of 4 (296 Views)

Re: Ribbon Combo Box display size

05-30-2012 07:28 AM in reply to: c.dufrene

I'm not sure what the "NaN" is for, but if you are wanting to make the box smaller play around with different numbers instead of "NaN."  (e.g. 150)  Those spaces are for the width of the box in pixels. 

─────────────────────────────────────────────────────────────────────────────────────────────
Brandon Gingerich
Valued Contributor
c.dufrene
Posts: 51
Registered: ‎04-26-2012
Message 3 of 4 (291 Views)

Re: Ribbon Combo Box display size

05-30-2012 07:34 AM in reply to: bgingerich

Great ! you nailed it

 

*Expert Elite*
pendean
Posts: 23,319
Registered: ‎11-06-2003
Message 4 of 4 (275 Views)

Re: Ribbon Combo Box display size

05-31-2012 05:28 AM in reply to: c.dufrene

NaN: Not a Number, it allows the CUI to resize as it sees fit without you entering a number (usually too wide I found).

Dean Saadallah Blog | Facebook | Google+ | Twitter | PINS
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!