Page 1 of 2
Calling Jog panel from button code not working.
Posted:
Sun Mar 17, 2019 5:51 am
by beefy
Hi Balazs,
I tried to call out the jog panel using:
Callbutton(770); Jog Panel show
Callbutton(771); Jog Panel hide
Callbutton(772); Jog Panel toggle
Nothing happened.
Keith.
Re: Calling Jog panel from button code not working.
Posted:
Sun Mar 17, 2019 6:02 am
by dezsoe
Hi Keith, Where did you call them from? Macro or plugin? And which version?
Re: Calling Jog panel from button code not working.
Posted:
Sun Mar 17, 2019 8:06 am
by beefy
Hi Dezsoe,
latest development version 1.2109
First I called them from a plugin and found nothing was happening. Any other Callbutton() is working fine from the plugin.
So then I made 3 individual macros, one for each separate jog panel Callbutton() function. I entered each one in turn in MDI but still nothing happened.
Keith.
Re: Calling Jog panel from button code not working.
Posted:
Sun Mar 17, 2019 9:24 am
by dezsoe
The same here and also with 1.2049.
Re: Calling Jog panel from button code not working.
Posted:
Sun Mar 17, 2019 10:26 am
by beefy
Thanks Dezsoe,
at least good to have the bug confirmed.
Keith.
Re: Calling Jog panel from button code not working.
Posted:
Sun Mar 17, 2019 10:49 am
by Dan911
I just tried in 08 (plugin) and seems to be working fine, I guess I'm finally going to get around to loading 09.
How are you calling in plugin?
Re: Calling Jog panel from button code not working.
Posted:
Sun Mar 17, 2019 11:00 am
by Dan911
Hmmmm, just tried 49 in plugin and seems to be working there also.
Once again how you calling???
Re: Calling Jog panel from button code not working.
Posted:
Sun Mar 17, 2019 11:04 am
by beefy
Dan911 wrote:How are you calling in plugin?
In the plugin I pass an int parameter via a variable:
int buttonCode = 770;
UC.Callbutton(buttonCode);
And in a macro I'd simply write:
exec.Callbutton(770);
Neither brings up the jog window.
Keith
Re: Calling Jog panel from button code not working.
Posted:
Sun Mar 17, 2019 11:15 am
by Dan911
Ok, how I tested is I have a button(#5678) and in it's button event call the jog window UC.CallButton(770) and all works fine.
Re: Calling Jog panel from button code not working.
Posted:
Sun Mar 17, 2019 11:27 am
by Dan911
I just created...
- Code: Select all
public void buttonnum(int num)
{
UC.Callbutton(num);
}
And worked NP in 49 and 08