Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Third pary components
PostPosted: Wed Mar 21, 2012 5:42 am 

Joined: Mon Dec 05, 2011 12:25 am
Posts: 15

Offline
hi,

can any body tell me from where i can download third pary components or controls for ix panel,

thanks


 Profile  
 
 Post subject: Re: Third pary components
PostPosted: Wed Mar 21, 2012 8:22 am 

Joined: Tue Mar 13, 2012 9:53 am
Posts: 644

Offline
Hi umesh,

Are you looking for a specific feature that you haven't been able to find in iX Developer? Maybe we can point you to it if you describe what you are looking for.

_________________
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer


 Profile  
 
 Post subject: Re: Third pary components
PostPosted: Wed Mar 21, 2012 9:31 am 
User avatar

Joined: Fri Jul 15, 2011 3:21 pm
Posts: 215

Offline
We have some new objects coming with the next version of iX in April such as an improved ListBox, DropDownList, Chart and Scrolling Text. Be sure to check with your sales rep. at that time to make sure you get a copy.

If you are just needed more graphics, I've had some luck with buying graphics from here in the past.
http://www.iconshock.com/

_________________
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer


 Profile  
 
 Post subject: Re: Third pary components
PostPosted: Wed Mar 21, 2012 11:13 pm 

Joined: Mon Dec 05, 2011 12:25 am
Posts: 15

Offline
Thanks Mark and Ron http://www.iconshock.com/ was very help full.

I want to add some features like.
* Print Screen and save .bmp file.
* Stylish Message Box with OK Cancel Button.

And I wnat to make a Control for Report generation Same as Beijer E terminal.
Where I will write text and add tags and file path to save report. I need rough idea how to do that if you have any example.

Thanks
Umesh Patil


 Profile  
 
 Post subject: Re: Third pary components
PostPosted: Thu Mar 22, 2012 9:35 am 

Joined: Tue Mar 13, 2012 9:53 am
Posts: 644

Offline
Hi Umesh,

I would take a look at the samples that come with iX developer. You can find them in the 'samples' tab that comes up when you initially open ix Developer.

Attachment:
sample.png
sample.png [ 67.31 KiB | Viewed 1300 times ]


Also take a look at the manual.

_________________
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer


 Profile  
 
 Post subject: Re: Third pary components
PostPosted: Thu Mar 22, 2012 10:05 am 
User avatar

Joined: Fri Jul 15, 2011 3:21 pm
Posts: 215

Offline
With iX Developer 2.0 coming out in April, there will be a report generator feature included that should help you out.


Attachments:
Snap 2012-03-22 at 10.05.11.jpg
Snap 2012-03-22 at 10.05.11.jpg [ 79.98 KiB | Viewed 1300 times ]

_________________
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer
 Profile  
 
 Post subject: Re: Third pary components
PostPosted: Sat Mar 24, 2012 5:15 am 

Joined: Mon Dec 05, 2011 12:25 am
Posts: 15

Offline
Thanks Ron and Mark.

I am using T10A. I wnat to save image of screen following script is not working what should I do.

private void PrintScreen()

{

Bitmap printscreen = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);

Graphics graphics = Graphics.FromImage(printscreen as Image);

graphics.CopyFromScreen(0, 0, 0, 0, printscreen.Size);

printscreen.Save(@"C:\Temp\printscreen.jpg", ImageFormat.Jpeg);

}

Regards
umesh


 Profile  
 
 Post subject: Re: Third pary components
PostPosted: Mon Mar 26, 2012 9:16 am 

Joined: Tue Mar 13, 2012 9:53 am
Posts: 644

Offline
Hi umesh,

Windows CE doesn't support those functions. Here is the code that you need to make a button take a picture of the screen. Windows CE also does not use letters for drive names, 'C:\' will not work. Where do you want to put the image once you have taken it?

Mark


Code:
//--------------------------------------------------------------
// Press F1 to get help about using script.
// To access an object that is not located in the current class, start the call with Globals.
// When using events and timers be cautious not to generate memoryleaks,
// please see the help for more information.
//---------------------------------------------------------------

namespace Neo.ApplicationFramework.Generated
{
    using System.Windows.Forms;
    using System;
    using System.Drawing;
   using System.Runtime.InteropServices;
    using Neo.ApplicationFramework.Tools;
    using Neo.ApplicationFramework.Common.Graphics.Logic;
    using Neo.ApplicationFramework.Controls;
    using Neo.ApplicationFramework.Interfaces;
   
   
   
    public partial class Screen1
    {
      //  imports the GDI BitBlt function that enables the background of the window
      //  to be captured
      [DllImport("coredll.dll")]
      private static extern bool BitBlt(
      IntPtr hdcDest,       // handle to destination DC
      int nXDest,           // x-coord of destination upper-left corner
      int nYDest,           // y-coord of destination upper-left corner
      int nWidth,           // width of destination rectangle
      int nHeight,          // height of destination rectangle
      IntPtr hdcSrc,        // handle to source DC
      int nXSrc,            // x-coordinate of source upper-left corner
      int nYSrc,            // y-coordinate of source upper-left corner
      System.Int32 dwRop    // raster operation code
      );
      
      [DllImport("coredll.dll")]
      public extern static System.IntPtr GetDC(System.IntPtr hWnd);

      [DllImport("coredll.dll")]
      public extern static int ReleaseDC(System.IntPtr hWnd, System.IntPtr hDC); //modified to include hWnd

      void Button1_Click(System.Object sender, System.EventArgs e)
      {
         CaptureForm();
      }
            
      private void CaptureForm ()
      {
         // Get the handle of the form's device context and create compatible
         // graphics and bitmap objects
         //
 
         System.IntPtr srcDC = GetDC (IntPtr.Zero);
         System.Drawing.Bitmap bm = new System.Drawing.Bitmap (this.Width, this.Height);
         System.Drawing.Graphics graphics = System.Drawing.Graphics.FromImage (bm);

         // Get the handle to the graphics object's device context.
         //
         System.IntPtr bmDC = graphics.GetHdc ();

         // Copy the form to the bitmap
         //
         BitBlt (bmDC, 0, 0, bm.Width, bm.Height, srcDC, 0, 0, 0x00CC0020 /*SRCCOPY*/);

         // Release native resources
         //
         ReleaseDC (IntPtr.Zero, srcDC);
         graphics.ReleaseHdc (bmDC);
         graphics.Dispose ();

         // Save the bitmap in jpeg format.
         //Directory where you want the image. In this case
         //it will be saved to the external memory card.
         string directory = @"\Storage Card2";
         string datePatt = @"M_d_yyyy hh_mm_ss tt";
         string dateNow = DateTime.Now.ToString(datePatt);
         string filename = String.Format (@"{0}\Snap {1}.jpg", directory, dateNow);
         
         try
         {
            bm.Save (filename, System.Drawing.Imaging.ImageFormat.Jpeg);
         }
         catch (Exception x)
         {
            System.Diagnostics.Debug.WriteLine (x);
         }
      }
    }
}

_________________
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer


 Profile  
 
 Post subject: Re: Third pary components
PostPosted: Mon Mar 26, 2012 10:35 am 
User avatar

Joined: Fri Jul 15, 2011 3:21 pm
Posts: 215

Offline
If you want to save to the FTP directory, you can use this code.

Code:
string path = @"\FlashDrive\Project\Project Files";
            if (Directory.Exists(path) == false) {
               Directory.CreateDirectory(path);
            }            
            path = path + @"\printscreen.jpg";


Here's a sample project for this also.


Attachments:
TestScreenShot.zip [75.13 KiB]
Downloaded 79 times

_________________
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer
 Profile  
 
 Post subject: Re: Third pary components
PostPosted: Wed Mar 28, 2012 6:48 am 

Joined: Mon Dec 05, 2011 12:25 am
Posts: 15

Offline
Thanks a lot it is working fine.

Is it possible to take screen print of screen which is not open.


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next

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:  
cron