Page 1 of 2
Third pary components
Posted: Wed Mar 21, 2012 5:42 am
by umesh.patil
hi,
can any body tell me from where i can download third pary components or controls for ix panel,
thanks
Re: Third pary components
Posted: Wed Mar 21, 2012 8:22 am
by mark.monroe
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.
Re: Third pary components
Posted: Wed Mar 21, 2012 9:31 am
by Ron L.
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/
Re: Third pary components
Posted: Wed Mar 21, 2012 11:13 pm
by umesh.patil
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
Re: Third pary components
Posted: Thu Mar 22, 2012 9:35 am
by mark.monroe
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.
- sample.png (67.31 KiB) Viewed 21953 times
Also take a look at the
manual.
Re: Third pary components
Posted: Thu Mar 22, 2012 10:05 am
by Ron L.
With iX Developer 2.0 coming out in April, there will be a report generator feature included that should help you out.
Re: Third pary components
Posted: Sat Mar 24, 2012 5:15 am
by umesh.patil
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
Re: Third pary components
Posted: Mon Mar 26, 2012 9:16 am
by mark.monroe
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: Select all
//--------------------------------------------------------------
// 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);
}
}
}
}
Re: Third pary components
Posted: Mon Mar 26, 2012 10:35 am
by Ron L.
If you want to save to the FTP directory, you can use this code.
Code: Select all
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.
Re: Third pary components
Posted: Wed Mar 28, 2012 6:48 am
by umesh.patil
Thanks a lot it is working fine.
Is it possible to take screen print of screen which is not open.