Size of rectangle

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
hans gerritsen
Posts: 26
Joined: Fri Jan 20, 2012 12:55 pm

Size of rectangle

Post by hans gerritsen »

Hi,

Is there a way to dynamically change the size of a rectangle on a TA-panel?

Hans

Skylar
Posts: 42
Joined: Wed Jan 04, 2012 11:17 am

Re: Size of rectangle

Post by Skylar »

Hans,

Use a script to change your rectangle on an event. Here is an example:

public partial class Screen1
{

void Rectangle1_MouseDown(System.Object sender,
System.Windows.Forms.MouseEventArgs e)
{
this.Rectangle1.Height = 20;
this.Rectangle1.Width = 40;
}
}
Best Regards,

Beijer Electronics, Inc.
Skylar Walker | Applications Engineer

Post Reply