ScriptSpot

Forum topic · General Scripting

TextBox - dotNet

By Matyrix · 2010-12-29

Description

Hello,

I tried to use a TextBox in a maxscript. Unfortunately it's always writing out error messages.
The code what i tried is the next: (it's on LoneRobot's site: http://lonerobot.net/?p=568 )


rollout tbtest “MXS Dotnet texbox” width:227 height:23
(
	dotnetcontrol textboxctrl “TextBox” pos:[1,1] width:225 height:16

	on textboxctrl gotfocus sender arg do enableacellerators = false
	on textboxctrl lostfocus sender arg do enableacellerators = true
)
createdialog tbtest

I tried it in a lot of other forms, used other syntax, or "preload" the used .dll (dotNet.LoadAssembly() etc ), but it's still not works.

Thanks your ideas in advance,
Matyrix

Comments (2)

Matyrix · 2010-12-29

pf... i can't believe it... "" are with bad ASCII, great... :)
thanks for the correction...

hows this? (   rollout

Graph · 2010-12-29

hows this?

(

	rollout tbtest "MXS Dotnet texbox" width:227 height:23
	(
		dotnetcontrol textboxctrl "TextBox" pos:[1,1] width:225 height:16
	 
		on textboxctrl gotfocus sender arg do enableacellerators = false
		on textboxctrl lostfocus sender arg do enableacellerators = true
	)
	createdialog tbtest	
	
)