6/3/2011 1:44 PM | |
Joined: 4/19/2008 Last visit: 11/21/2024 Posts: 1525 Rating: (159) |
Hi Chetna, Now it is Clear, what you want, Copy the Working Block Icon, Edit it what you want in side it, Don't Delete anything in that, if you want to add, add it, Finish the Block Icon Edit, Now Checked the Property of the Block Icon, Event -> Click. also compare Action with orignal (Working Block Icon). here is the Link for the PCS7 Faceplate in that you will find all the Action & where you have to call........ |
Ammy |
|
6/4/2011 6:26 AM | |
Posts: 34 Rating: (0) |
Hi Shar, Can you please tell me how to call a C script to trigger the opening of a faceplate on clicking the pic in block icon? Thanks. Chetna |
6/4/2011 6:54 AM | |
Joined: 2/6/2009 Last visit: 8/19/2024 Posts: 939 Rating: (118) |
Hi, I have attached the screen shot the user defined block icon which I have created for my project and the C-script for opening the facelate is as follow. You have to call the script at the event=> mouse action. Script #include "apdefap.h" void OnClick(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName) { APL_OpenFaceplate(lpszPictureName, lpszObjectName,0, NULL, NULL ); } Attachmentblock icon.pdf (318 Downloads) |
_______________________________________________________________ |
|
6/4/2011 7:38 AM | |
Posts: 691 Rating: (37) |
Hey Chetna There is another way to create faceplatesexcept scripting. Scripting method has been given by Saravana AttachmenttEST.zip (258 Downloads) |
6/4/2011 11:34 AM | |
Joined: 2/6/2009 Last visit: 8/19/2024 Posts: 939 Rating: (118) |
Hi, The object in your attachement is of symbol library only and they wont have mouse actions by default. To assign some attribute to that object you have to make the customized object by using the symbols from symbol library. Please look into the attachement about creating a customized object by using symbol library
Attachmentcustomized object.pdf (303 Downloads) |
_______________________________________________________________ |
|
This contribution was helpful to1 thankful Users |
Follow us on