Page 1 of 1

Fresh instance & CTB right-click

Posted: 22 Jun 2024 22:30
by Daniel0312
Hi,
I'm not sure it qualifies as a bug, but it's not the expected behavior, or maybe I missed something.

Fresh instance
I set up a TB button as below.
Button config.png
Left-click works just fine.
Right-click not so well : below my script code...

Code: Select all

msg "Outside labels";

"Right Click Script Label"
  msg "Right click";

"Another Script Label"
  msg "Other script";
Here is what I get !
Right-click menu.png
Clicking on an item actually execute the script.
The original instance works as expected.

Re: Fresh instance & CTB right-click

Posted: 23 Jun 2024 17:40
by admin
Your description is incomplete. There seem to be two different XYS files involved.

Re: Fresh instance & CTB right-click

Posted: 23 Jun 2024 19:10
by Daniel0312
Hi !
Not sure how incomplete my description was, but my searching of the forum surely was.

Code: Select all

; Tweak: no Click, Edit, Customize Toolbar commands in the CTB context menu
CTBNoRClickDefaultCommands=1
This solved my problem : it was definitely not a bug and I did miss something !
Thanks for your the time.

Re: Fresh instance & CTB right-click

Posted: 24 Jun 2024 08:38
by admin
Your screenshot showed two different XYS files, but you only specified the contents of one. I cannot replicate a problem with incomplete data. I thought. Well, I see now that the one XYS would have been enough. :oops:

Anyway, good that you found it. :tup: