Home
Help
Search
Login
Register
AdvancedHMI Software
»
General Category
»
Support Questions
»
how to make my own component?
« previous
next »
Print
Pages: [
1
]
Author
Topic: how to make my own component? (Read 2101 times)
oqapsking
Full Member
Posts: 178
how to make my own component?
«
on:
October 16, 2016, 10:38:08 AM »
is it possible to make my own component to use with advance hmi ?
for example
i have a moving picture
if the coil is on the picture start moving
if the coil is off the picture stops
and a visible address to use
with thanks
Logged
Archie
Administrator
Hero Member
Posts: 5322
Re: how to make my own component?
«
Reply #1 on:
October 16, 2016, 11:11:25 AM »
To make a control from scratch is possible, but takes some fairly advanced knowledge of .NET and GDI+. In the Additional Components section of the forum, you will find several examples with full source code.
Logged
oqapsking
Full Member
Posts: 178
Re: how to make my own component?
«
Reply #2 on:
October 16, 2016, 12:12:08 PM »
thanks for replaying
i used to make them when i was using DMT.dll Library
the library that communicate with delta plc
i was doing it like this :
1- add new item ( user control )
2- i put in its designer what i need
-picture box
-(3) text boxes one for each variable and hide them
-timer
3-i disable the picture box
4- i put the request data function in the timer
in the function there is 3 variables
a- the device address (coil address in my case)
then if the received data is 0 then picture box is disabled
and if the received data is 1 then picture box is enabled
5- i put the property i need to be able to change it ( witch in my case is the plc value address )
6- rebuild the project
so in the end
the when i choose it from the toolsbox
i put the value address
and when i start the program if the coil is on the picture moves
no i wanna be able to do that with the advancehmi
so i want the code
that i should use to send and receive data using it
Logged
Godra
Hero Member
Posts: 1447
Re: how to make my own component?
«
Reply #3 on:
October 16, 2016, 12:18:32 PM »
You might take a look at this topic:
http://advancedhmi.com/forum/index.php?PHPSESSID=4c2c4441ff0f4278d4ce67223297d1c9&topic=612.0
The GlassButton supports certain animated images.
Do read all the posts in that topic before downloading.
Logged
Print
Pages: [
1
]
« previous
next »
AdvancedHMI Software
»
General Category
»
Support Questions
»
how to make my own component?