while I was reading this post:
I focused on this line of code
var cmd = new CommandDialog(){Size = new Size(800,600)};
but the CommandDialog in Rh8 has been replaced?
while I was reading this post:
I focused on this line of code
var cmd = new CommandDialog(){Size = new Size(800,600)};
but the CommandDialog in Rh8 has been replaced?
strange, how this thing works, if I search for “CommandDialog” in the guide script editor I don’t
find any arguments, but at the same time the code in the posted link works without problems. . .
old methods that have been replaced by new ones, but which still remain functional in the libraries?
Hi @0904,
I’m not sure I understand the question. But this still works:
import Eto
import Rhino
dialog = Rhino.UI.Forms.CommandDialog()
dialog.Size = Eto.Drawing.Size(800,600)
imageView = Eto.Forms.ImageView()
imageView.Image = Eto.Drawing.Bitmap(r"C:\Windows\System32\FeatureToastBulldogImg.png")
dialog.Content = imageView
dialog.ShowHelpButton = False
dialog.Resizable = True
dialog.ShowModal(Rhino.UI.RhinoEtoApp.MainWindow)
What am I missing?
– Dale
Hi Dale, thanks for reply
I can’t find anything in the help about the CommandDialog() method
I don’t understand why, either using the search in the EditScript help
in Rh8 but also on the site where the online API guide is located I go to
search for CommandDialog but I have no results:
https://developer.rhino3d.com/api/rhinocommon/
I was able to figure out that CommandDialog() was part of the Rhino.UI family but after a long time
(Maybe it’s me who doesn’t know how to use the guide well?)
to be honest I can’t even find this: Rhino.UI.Forms
@dale, is there a reason why there is no Rhino.UI.Forms entry in the developer docs?
@Gijs - I believe the help system generator only processes RhinoCommon.dll
, not Rhino.UI.dll
.
I don’t believe Rhino.UI.dll
is well-commented.
– Dale