Picture Methods/Properties through Scripts

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
Jwphilippi
Posts: 13
Joined: Mon Mar 11, 2013 8:48 am

Picture Methods/Properties through Scripts

Post 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?
Attachments
ExampleForm.png
ExampleForm.png (8.93 KiB) Viewed 26583 times
Available Methods.png
Available Methods.png (7.54 KiB) Viewed 26583 times

User avatar
Edmund
Posts: 92
Joined: Thu Nov 29, 2012 2:27 pm

Re: Picture Methods/Properties through Scripts

Post 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 26577 times
Picture_3.png
Picture_3.png (177.49 KiB) Viewed 26577 times
Picture_4.png
Picture_4.png (197.88 KiB) Viewed 26577 times
Edmund Andersson

AITECH AB

Part of Beijer Integrator Group

Jwphilippi
Posts: 13
Joined: Mon Mar 11, 2013 8:48 am

Re: Picture Methods/Properties through Scripts

Post by Jwphilippi »

Thanks Edmund, you are the man.

Jwphilippi
Posts: 13
Joined: Mon Mar 11, 2013 8:48 am

Re: Picture Methods/Properties through Scripts

Post by Jwphilippi »

Ok, follow up question. Is there a good way to convert type System.Drawing.Bitmap to Neo.ApplicationFramework.Interfaces.INativeBitmap?

User avatar
Edmund
Posts: 92
Joined: Thu Nov 29, 2012 2:27 pm

Re: Picture Methods/Properties through Scripts

Post 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.
Edmund Andersson

AITECH AB

Part of Beijer Integrator Group

Post Reply