Red Lion Crimson 3.0 – Control ID in action code.

Dyslexicbloke

Member
Join Date
Jul 2011
Location
Leek, ST13 7ER
Posts
34
Hi folks,
I am currently working on a little project that is going to need a date picker control.

Obviously there isn’t a native one so building a widget is the way to go.
That leads me to the question.

Since I will have at least 40 objects with actions, 35 of which will need to do exactly the same thing but with differing data, is there a way to identify which control was pressed last.
Obviously I appreciate that the code in any specific action definition is unique to that control so identifying the control concerned would not usually be necessary but that also means that every control must have unique code assigned to its action properties.

An elegant solution would be to use code common to all similar controls that simply called a program and passed in a variable that identified which control had called it, a control ID if you like.

These could of course be individually coded:-
MyComonAction(1) / MyComonAction(2)
but it would be more than a little useful if there were some way to derive one from the control itself:-
MyComonAction(i)
much like ‘ i ’ works for actions on array elements.

I would also be interested to know if data boxes, primitives and the like can be referenced in code directly …. Is it possible to achieve anything like :-

DataBox1.Visible:=0
Or perhaps
DataBox1.Top:=10

Thanks for reading ….
Alistair
 

Similar Topics

Hi, I am trying to increase the size of the user login pop up using a Red Lion CR1000 7” HMI with Crimson 3.1 software. The login pop up is very...
Replies
2
Views
655
Hello, We are currently running a bunch of g310's connected to their SLC5 PLCs through ethernet. I've attempted to upgrade the program from 2.0...
Replies
1
Views
1,069
Hi I have been using Red Lion products for some time, I had a thought over the bank holiday weekend, As you do. It would be nice if whenever a...
Replies
4
Views
976
Well, I have yet another question for the great minds on this forum! We have a red lion HMI for one of our machines and every time I hook my...
Replies
11
Views
1,608
Yes it's very legacy.. but sometimes it's necessary to use old stuff for fun.. and because it's so much cheaper. Crimson 3.0 had the ability to...
Replies
4
Views
1,577
Back
Top Bottom