Gadgets ShowDialog question

This section is for general discussion about Gadgets
Post Reply
astebur@aol.com
Posts: 5
Joined: Fri Aug 12, 2016 8:32 pm
Model of CNC Machine: Oliver 1013 and NWA Piranha FX
Location: Sometimes Nebraska, sometimes California

Gadgets ShowDialog question

Post by astebur@aol.com »

I have written a gadget for myself that I hope to share soon, but it has one nagging problem I haven't figured out how to fix.

My gadget has an HTML dialog to obtain user parameters. I display the dialog with the ShowDialog function, then obtain the user values via an OnLuaButton procedure. Everything works fine, and the gadget completes what I want done, but the HTML dialog is still displayed. I have to click on the "x" at the top of the dialog to make it go away.

Is there something I can do to close the dialog after the user has entered the values and clicked on the submit button? I'd sure like to do that if possible.

Thanks in advance for your help.

Art

astebur@aol.com
Posts: 5
Joined: Fri Aug 12, 2016 8:32 pm
Model of CNC Machine: Oliver 1013 and NWA Piranha FX
Location: Sometimes Nebraska, sometimes California

Re: Gadgets ShowDialog question

Post by astebur@aol.com »

Never mind, Ijust didn't understand. I didn't need a onluabutton handler at all. I willprobably be posting my gadget shortly.

User avatar
jimandi5000
Vectric Wizard
Posts: 511
Joined: Wed Mar 11, 2015 6:50 pm
Model of CNC Machine: Home Made 60 x 120
Location: North Houston Tx.

Re: Gadgets ShowDialog question

Post by jimandi5000 »

How is it the Gadget coming?

Love to see what you have come up with?
Thanks,
Jim

Post Reply