Search found 92 matches

by Edmund
Thu Apr 25, 2013 9:26 am
Forum: Scripting
Topic: Hlep with creating a Rolling average
Replies: 2
Views: 6987

Re: Hlep with creating a Rolling average

Simple, query the database (the datalogger table) for the average for the last 24hours, read it with a sql_reader and write the result to a tag. Sql_Command = new SqlCeCommand( "SELECT AVG(Tag_1) FROM DataLogger1 WHERE Time > DATEADD(HH,-24,GETDATE())", Sql_Connection); Sql_Reader = Sql_Command.Exec...
by Edmund
Thu Apr 25, 2013 5:06 am
Forum: Application Development
Topic: A single Dual Linear Meter
Replies: 2
Views: 5718

Re: A single Dual Linear Meter

Hi!

No you are right, you can´t make the background transparent (hopefully in the next version)...

But you could create your own or place a rectangle in front and adjust the height and startposition depending on a tag value.
Fill_1.png
Fill_1.png (7.34 KiB) Viewed 5709 times
Best Regards
by Edmund
Wed Apr 24, 2013 6:38 am
Forum: Scripting
Topic: Setting tag if user is logged in.
Replies: 14
Views: 22865

Re: Setting tag if user is logged in.

Hi Sarah, Your code works great, are you sure that you have spelled the name of the two screens right? Should the S in screen1/2 be capitalized? void SystemTagCurrentUser_ValueChange(System.Object sender, Neo.ApplicationFramework.Interfaces.Events.ValueChangedEventArgs e) { if(Globals.Tags.SystemTag...
by Edmund
Mon Apr 22, 2013 11:50 pm
Forum: Scripting
Topic: How to change Background screen in runtime with a tag
Replies: 3
Views: 7368

Re: How to change Background screen in runtime with a tag

You could create two backgrounds and two diffrent screens that uses the diffrent backgrounds, and on the opened event of the first screen check the value of the tag and redirect to the other screen if the logic says so. Or you could create a dynamic picture (changed by tag value) and send it to back...
by Edmund
Fri Apr 19, 2013 4:39 am
Forum: Application Development
Topic: Import excel sheet on IX
Replies: 4
Views: 8807

Re: Import excel sheet on IX

What file extension will your excel sheet have (*.xls, *.xlsx, *.csv)?

If you have a example of it, it would be easier.
by Edmund
Mon Apr 08, 2013 8:59 am
Forum: Scripting
Topic: Edit control properties by string name
Replies: 6
Views: 13738

Re: Edit control properties by string name

Well yes the example only works with the full .Net Framework (WPF, PC-Target), and I havent found any good ways to do it for the Compact Framework (CE, Panels).

What you could do is adding the controls to a Array or List that you search in and updates if the object exsits...
by Edmund
Mon Apr 08, 2013 3:56 am
Forum: Scripting
Topic: External program check
Replies: 15
Views: 30119

Re: External program check

You're welcome :)
by Edmund
Mon Apr 08, 2013 3:10 am
Forum: Application Development
Topic: System dialogs
Replies: 7
Views: 12200

Re: System dialogs

Well that´s because your target is a panel with Windows CE and Compact framework... And WPF is not available there.

There is also a class called MessageBoxCF, have a try at that (I have never tried it).

Why are you not using the "ordinary" message box function i .Net?
by Edmund
Mon Apr 08, 2013 1:12 am
Forum: Application Development
Topic: System dialogs
Replies: 7
Views: 12200

Re: System dialogs

Well I haven’t heard or seen anything about it so It´s probably not meant to be used from anything else than the built in functions. But there is a way to use them anyhow. Neo.ApplicationFramework.Tools.Messagebox.MessageBoxFX.Show(System.IntPtr.Zero, "I´m a iX-Message :)"); Messagebox.png Neo.Appli...
by Edmund
Fri Apr 05, 2013 10:48 am
Forum: Scripting
Topic: External program check
Replies: 15
Views: 30119

Re: External program check

Easy as pie ;) 1. Second argument to Process.Start is filename, to which file you wont to open on start. Process.Start("notepad.exe", @"C:\test.txt"); 2. We can both easy Maximize and Restore the notepad window with the ShowWindow function in user32.dll. [DllImport("user32.dll")] static extern bool ...