Page 1 of 1

Picture Methods/Properties through Scripts

Posted: Tue Mar 19, 2013 4:52 pm
by Jwphilippi
Is there away to access extended functionality with Picture object through scripting (i.e. Picture1.Image = blah.jpeg). Currently it only has available properties such as Visible or Enable and so on. Or do you have to create a System.Windows.Forms object and build out a PictureBox?

Re: Picture Methods/Properties through Scripts

Posted: Tue Mar 19, 2013 11:34 pm
by Edmund
Install Microsoft Visual Studio (Full or C# Express), and set it up as a external IDE. There is forum post how to do that.

iX Script IDE only shows common properties / function for each object that are "safe/simple" to use for any user (script expert or not)...

The properties and function can be called from iX but they are not visible.

But when you have a look in Visual Studio you will see more.

Picture1 is actully m_Picture1, so if you need to get the real object access it via the real member varible (not the adapterd version).
Picture_2.png
Picture_2.png (156.98 KiB) Viewed 26581 times
Picture_3.png
Picture_3.png (177.49 KiB) Viewed 26581 times
Picture_4.png
Picture_4.png (197.88 KiB) Viewed 26581 times

Re: Picture Methods/Properties through Scripts

Posted: Wed Mar 20, 2013 7:46 am
by Jwphilippi
Thanks Edmund, you are the man.

Re: Picture Methods/Properties through Scripts

Posted: Wed Mar 20, 2013 10:21 am
by Jwphilippi
Ok, follow up question. Is there a good way to convert type System.Drawing.Bitmap to Neo.ApplicationFramework.Interfaces.INativeBitmap?

Re: Picture Methods/Properties through Scripts

Posted: Thu Mar 21, 2013 4:50 am
by Edmund
Not sure why you want to convert it, but INativeBitmap is a Interface and System.Drawing.Bitmap is a class.

A class can implement a Interface but not be converted to one.