New Buttons for costumising screen-set

If you created a new screenset and want to share it with others then please post it here. You can talk about screens here.

New Buttons for costumising screen-set

Postby carsten@ullerup.org » Tue Dec 20, 2016 9:40 am

Hi. Costumizing my screenset i have been drawing a couple of new buttons, and placed them in the Flashscreen folder. But - how do i find them in the screen editor. The screen editor requires a "picturenumber", - how do i assign a picturenumber to my button??
/Carsten
carsten@ullerup.org
 
Posts: 6
Joined: Sun Dec 18, 2016 7:42 am

Re: New Buttons for costumising screen-set

Postby cncdrive » Tue Dec 20, 2016 10:50 am

You can add new images with the Screen editor Images tab page.
At the bottom of that page you can find an Add image image button and you can set the picture number you want for your image.
Then when the new image is created click on it's path link in the list to browse add your image.
And finally change the picturenumber property of your button to that number to render the newly added image on your button.
cncdrive
Site Admin
 
Posts: 4695
Joined: Tue Aug 12, 2014 11:17 pm

Re: New Buttons for costumising screen-set

Postby carsten@ullerup.org » Wed Dec 21, 2016 9:40 am

Hi.
I succeded to "make the buttons for my screen and has written the macro for the functions.
Hereby enclosed the buttons and the code.
Please feel free to use them.
I have great succes using the x and Y1/2 function finding the centers of the material using an edgefinder, in manual jobs
The Button Y/2_up will be added in a seperate post !!!!

// Macro for 1/2 X

double Xposvariable = exec.GetXpos(); //Get X DRO value
double half = Xposvariable/2;

AS3.Setfield(half, 226);
AS3.Validatefield(226);

// Macro for 1/2 Y

double Yposvariable = exec.GetYpos(); //Get Y DRO value
double half = Yposvariable/2;

AS3.Setfield(half, 227);
AS3.Validatefield(227);
Attachments
x2_down.png
x2_down.png (10.76 KiB) Viewed 12033 times
y2_down.png
Button Y/2_down
y2_down.png (9.96 KiB) Viewed 12033 times
x2_up.png
Button X/2_up
Last edited by carsten@ullerup.org on Wed Dec 21, 2016 9:47 am, edited 2 times in total.
carsten@ullerup.org
 
Posts: 6
Joined: Sun Dec 18, 2016 7:42 am

Re: New Buttons for costumising screen-set

Postby carsten@ullerup.org » Wed Dec 21, 2016 9:41 am

Button Y/2_up
Attachments
y2_up.png
y2_up.png (11.07 KiB) Viewed 12033 times
carsten@ullerup.org
 
Posts: 6
Joined: Sun Dec 18, 2016 7:42 am


Return to Custom Screensets

Who is online

Users browsing this forum: No registered users and 7 guests