adding led and text field to pop up form

This is where you talk about Macros, show examples of your macro scripting and SHARE handy segments of script code as examples.

Re: adding led and text field to pop up form

Postby Battwell » Sun Jan 03, 2021 6:47 pm

Ha
That’s easy :-)
I was trying to use text box
Uc300eth on router and mill.
UK uccnc powered machine sales. https://cncrouter.uk/atc-cnc-routers.htm
Automateanything/duzzit cnc/mercury cnc
Battwell
 
Posts: 867
Joined: Sun Sep 25, 2016 7:39 pm
Location: South Wales. Uk

Re: adding led and text field to pop up form

Postby dezsoe » Sun Jan 03, 2021 7:04 pm

It's the same with textbox: you have to write a string into the .Text property. AS3.Getfield returns string. If you have a number then you have to use ToString(): myTextbox.Text = myNumber.ToString().
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: adding led and text field to pop up form

Postby Battwell » Mon Jan 04, 2021 11:35 am

in your sample. it uses

path = Application.StartupPath + @"\Flashscreen\BMP\";

ledON = path + "LEDon.png";
ledOFF = path + "LEDoff.png";

this does not work on my pc for some reason.. what would i be missing?
i just get a placeholder.
Uc300eth on router and mill.
UK uccnc powered machine sales. https://cncrouter.uk/atc-cnc-routers.htm
Automateanything/duzzit cnc/mercury cnc
Battwell
 
Posts: 867
Joined: Sun Sep 25, 2016 7:39 pm
Location: South Wales. Uk

Re: adding led and text field to pop up form

Postby dezsoe » Mon Jan 04, 2021 11:49 am

Of course, you have to draw your pictures and place them into the Flashscreen\BMP folder. :)

I used these:

LEDon.png
LEDon.png (434 Bytes) Viewed 4783 times

LEDoff.png
LEDoff.png (437 Bytes) Viewed 4783 times
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Previous

Return to Macros

Who is online

Users browsing this forum: No registered users and 2 guests