Can a mel textfield not be wider than 100 pixels?

Can a mel textfield not be wider than 100 pixels?

Anonymous
適用対象外
751件の閲覧回数
5件の返信
メッセージ1/6

Can a mel textfield not be wider than 100 pixels?

Anonymous
適用対象外

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 件のいいね
解決済み
752件の閲覧回数
5件の返信
返信 (5)
メッセージ2/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 件のいいね
メッセージ3/6

Anonymous
適用対象外
Well sort of - I am setting that width field when I create the text field, not editing an existing one.
0 件のいいね
メッセージ4/6

stuzzz
Collaborator
Collaborator

if you force by editing, nothing happens?

0 件のいいね
メッセージ5/6

jmreinhart
Advisor
Advisor
解決済み

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

0 件のいいね
メッセージ6/6

Anonymous
適用対象外

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 件のいいね