Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Picture Methods/Properties through Scripts
PostPosted: Tue Mar 19, 2013 4:52 pm 

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

Offline
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 2010 times ]
Available Methods.png
Available Methods.png [ 7.54 KiB | Viewed 2010 times ]
 Profile  
 
 Post subject: Re: Picture Methods/Properties through Scripts
PostPosted: Tue Mar 19, 2013 11:34 pm 
User avatar

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

Offline
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).
Attachment:
Picture_2.png
Picture_2.png [ 156.98 KiB | Viewed 2004 times ]

Attachment:
Picture_3.png
Picture_3.png [ 177.49 KiB | Viewed 2004 times ]

Attachment:
Picture_4.png
Picture_4.png [ 197.88 KiB | Viewed 2004 times ]

_________________
Edmund Andersson

AITECH AB

Part of Beijer Integrator Group


 Profile  
 
 Post subject: Re: Picture Methods/Properties through Scripts
PostPosted: Wed Mar 20, 2013 7:46 am 

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

Offline
Thanks Edmund, you are the man.


 Profile  
 
 Post subject: Re: Picture Methods/Properties through Scripts
PostPosted: Wed Mar 20, 2013 10:21 am 

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

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


 Profile  
 
 Post subject: Re: Picture Methods/Properties through Scripts
PostPosted: Thu Mar 21, 2013 4:50 am 
User avatar

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

Offline
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


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: