Can a mel textfield not be wider than 100 pixels?

Can a mel textfield not be wider than 100 pixels?

Anonymous
Not applicable
735 Views
5 Replies
Message 1 of 6

Can a mel textfield not be wider than 100 pixels?

Anonymous
Not applicable

I keep trying to specify a wide textfield for entering a file name, but they always show up no more than 100 pixels wide. 😞

 

 

0 Likes
Accepted solutions (1)
736 Views
5 Replies
Replies (5)
Message 2 of 6

stuzzz
Collaborator
Collaborator

hello,

I can see a "witdh" flag for the textField command in the DOC ... have you tried?

cmds.textField("mynamewidget", edit=True, w=100)

 

0 Likes
Message 3 of 6

Anonymous
Not applicable
Well sort of - I am setting that width field when I create the text field, not editing an existing one.
0 Likes
Message 4 of 6

stuzzz
Collaborator
Collaborator

if you force by editing, nothing happens?

0 Likes
Message 5 of 6

jmreinhart
Advisor
Advisor
Accepted solution

It's possible that the layout you are using is making the textfield get scaled down to 100 pixels.

0 Likes
Message 6 of 6

Anonymous
Not applicable

I feel like an idiot - it wasn't this exactly, but once I read this I realized my mistake.  I was setting the  column widths in the layout but not the actual text box! 

 

Thank you to every one who replied!

0 Likes