iX Talk

add runtime button or shape
Page 1 of 1

Author:  Eric [ Fri Sep 06, 2013 7:24 am ]
Post subject:  add runtime button or shape


I want to add some buttons and/or shapes runtime on a form.

I can creat it, but I don't get it on the form:

public void Button1_Click(System.Object sender, System.EventArgs e)
   winButton btn = new winButton();
   btn.Height = 40;
   btn.Width  = 300;
   btn.BackColor = Color.Red;
   btn.Name = "btn1";

I am using the windows button. But I also tried it with the IX button. The button should come on screen1. I am using IX v2.0 SP1 Build 2.0.463.0

I get every time the messages:
'Neo.ApplicationFramework.Generated.Screen1' does not contain a definiation for 'Controls' and no extension method 'Controls' accepting a first argument of type 'Neo.ApplicationFramework.Generated.Screen1' could be found (are you missing a using directive or an assembly reference?)

Author:  mark.monroe [ Fri Sep 06, 2013 10:35 am ]
Post subject:  Re: add runtime button or shape

It would be easier to add the controls in iX Developer and then make them visible/invisible. If you are targeting the Windows version of iX Dev you need to look into WPF programming. The controls object you are referencing is not available when you are targeting a PC.

Author:  ladin79 [ Thu Jun 16, 2016 8:38 am ]
Post subject:  Re: add runtime button or shape

it is possible to have a simple example of how to add a control (PictureBox) for PC targeting?
Thanks in advance!

Page 1 of 1 All times are UTC - 7 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group