|
so,
been spending some time looking at how to convert my scripts from active x to dotnet.
so far i feel like the documentation in the maxscript help is a not very funny joke.
anways here’s what i’m stomped on, maybe one of you very sexy brained guys can figure it out, and help a brother out :)
ok, so…
what i’m trying to do is control the font of a treeview, i have figured out how to set the font and the size but style dosn’t seem to work for me. this is the basic contstructor i’m using
myFont = dotNetObject "system.drawing.font" (doNetObject "system.drawing.fontFamily" "Tahoma") 8.25 (dotNetObject "system.drawing.fontStyle" Bold)
i think the problem is that the “fontStyle” creator is broken.
this is how i have tested it…
--this is the the way you would guess the command is constructed (dotnetobject "system.drawing.fontStyle" "bold")
--problem is this crashes
--this line is a bit wi (dotnetobject "system.drawing.fontStyle" bold)
--this return an undefined value which makes me assume it it is broken
any ways, I’m probably not even coding this right. any help will be deeply appreciated.
cheers,
Los.
Carlos Anguiano
Technical Director/Digital Artist
Digital Domain
Venice CA
|