AutoCAD LT General Discussion

AutoCAD LT General Discussion

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

Ribbon Combo Box display size

316 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 (299 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 (294 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,640
Registered: ‎11-06-2003
Message 4 of 4 (278 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
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.