maxscript (Devi D3879) dotNetControl System.Windows.Forms.TextBox issue

try destroyDialog testRoll catch()
rollout testRoll ""
(
dotnetcontrol labMsg "System.Windows.Forms.TextBox" pos:[0,0] width:420 height:160
on testRoll open do
(
labMsg.AcceptsReturn = on
labMsg.AcceptsTab = on
labMsg.Multiline = on
labMsg.BackColor = (dotnetclass "System.Drawing.Color").FromArgb 0 0 255
labMsg.ForeColor = (dotnetclass "System.Drawing.Color").FromArgb 255 0 0
labMsg.Text = "maxVersion: " + (maxVersion()) as string
)
)
createdialog testRoll 420 200

在max2026测试版中,TextBox设置了Multiline后,背景颜色不起作用
暂时可以用System.Windows.Forms.RichTextBox代替,不知道正式版本发布后是否会修复


maxVersion: #(28000, 68, 0, 28, 0, 0, 3961, 2026, "") 版本修复

posted @   trykle  阅读(10)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示