To fix the position of a CTB menu? [Solved]

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
John_C
Posts: 336
Joined: 16 May 2018 20:04

To fix the position of a CTB menu? [Solved]

Post by John_C »

I have a script that looks like this:

Code: Select all

"Say a"
  msg("a");

"Say b"
  msg("b");

"Say c"
  msg("c");
The script is assigned to a CTB, and when I left-click the CTB, the context menu appears.

There is a one thing that I don't like, though. The top-left corner of the menu appears exactly where the cursor points, so the menu doesn't have any fixed position.

Compare it with the drop-down menu that drops when you left-click "Open With" toolbar button. The menu appears exactly under the button. Its position never changes.

Is it possible to make my CTB to work in such a way?
Last edited by John_C on 15 Mar 2022 17:56, edited 1 time in total.

jupe
Posts: 3575
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: To fix the position of a CTB menu?

Post by jupe »

Easiest way is to Edit... the button, select "Fire click on mousedown".

John_C
Posts: 336
Joined: 16 May 2018 20:04

Re: To fix the position of a CTB menu?

Post by John_C »

Perfect, thanks!

Post Reply