# \[SOLVED\]: 2018r1 : right-click or ctrl-click no longer fire cell-click in my app

**URL:** <https://forum.xojo.com/t/solved-2018r1-right-click-or-ctrl-click-no-longer-fire-cell-click-in-my-app/43057>\
**Category:** macOS\
**Created:** [April 18, 2018, 6:01pm UTC](https://forum.xojo.com/t/solved-2018r1-right-click-or-ctrl-click-no-longer-fire-cell-click-in-my-app/43057 "2018-04-18T18:01:04Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oliver\_Osswald](https://forum.xojo.com/user_avatar/forum.xojo.com/oliver_osswald/32/6972_2.png) [@Oliver\_Osswald](https://forum.xojo.com/u/Oliver_Osswald)\
**Post date:** [April 18, 2018, 6:01pm UTC](https://forum.xojo.com/t/solved-2018r1-right-click-or-ctrl-click-no-longer-fire-cell-click-in-my-app/43057/1 "2018-04-18T18:01:04Z")

</div>

Version 2018r1 broke my app in a way that right-clicks or ctrl-clicks are no longer triggering the cell-click event (where I construct a contextual menu).  
What I see is that the EnableMenuItems event-handler is fired and then nothing after that.

I will investigate further tomorrow morning. At the moment I have not yet been able to reproduce this in an independent, new project.

But what used to work for several years, now just broke. Yuck.

---

<div class="post-metadata">

**Author:** ![Jason\_Parsley](https://forum.xojo.com/user_avatar/forum.xojo.com/jason_parsley/32/152_2.png) [@Jason\_Parsley](https://forum.xojo.com/u/Jason_Parsley)\
**Post date:** [April 18, 2018, 6:30pm UTC](https://forum.xojo.com/t/solved-2018r1-right-click-or-ctrl-click-no-longer-fire-cell-click-in-my-app/43057/2 "2018-04-18T18:30:45Z")

</div>

This really never _should_ have caused a click. This has been fixed and now you properly get the construct contextual menu event raised.

Does it behave the same way in 2017r3? We believe the change is in that version.

---

<div class="post-metadata">

**Author:** ![Oliver\_Osswald](https://forum.xojo.com/user_avatar/forum.xojo.com/oliver_osswald/32/6972_2.png) [@Oliver\_Osswald](https://forum.xojo.com/u/Oliver_Osswald)\
**Post date:** [April 18, 2018, 6:50pm UTC](https://forum.xojo.com/t/solved-2018r1-right-click-or-ctrl-click-no-longer-fire-cell-click-in-my-app/43057/3 "2018-04-18T18:50:17Z")

</div>

I believe that the cell-click event was used in order to overcome the situation where we needed a context menu appear over a multi selected listbox, without loosing that multi-selection.

And this evening I did put a breakpoint into the contextual menu event and it never occurred.

But I will investigate further tomorrow morning.

Thank you for the reply!

---

<div class="post-metadata">

**Author:** ![Julia\_Truchsess](https://forum.xojo.com/user_avatar/forum.xojo.com/julia_truchsess/32/499_2.png) [@Julia\_Truchsess](https://forum.xojo.com/u/Julia_Truchsess)\
**Post date:** [April 18, 2018, 7:35pm UTC](https://forum.xojo.com/t/solved-2018r1-right-click-or-ctrl-click-no-longer-fire-cell-click-in-my-app/43057/4 "2018-04-18T19:35:11Z")

</div>

> [@383399:@Oliver Osswald](#):
>
> I believe that the cell-click event was used in order to overcome the situation where we needed a context menu appear over a multi selected listbox, without loosing that multi-selection.

You can put your contextual-menu-generating code in the MouseDown event and use IsContextualClick to differentiate from normal clicks. This method does not change the listbox selection.

---

<div class="post-metadata">

**Author:** ![Oliver\_Osswald](https://forum.xojo.com/user_avatar/forum.xojo.com/oliver_osswald/32/6972_2.png) [@Oliver\_Osswald](https://forum.xojo.com/u/Oliver_Osswald)\
**Post date:** [April 18, 2018, 8:02pm UTC](https://forum.xojo.com/t/solved-2018r1-right-click-or-ctrl-click-no-longer-fire-cell-click-in-my-app/43057/5 "2018-04-18T20:02:18Z")

</div>

> [@383410:@Julia Truchsess](#):
>
> You can put your contextual-menu-generating code in the MouseDown event and use IsContextualClick to differentiate from normal clicks. This method does not change the listbox selection.

Yes, and then with rowfromxy and columnfromxy one can get the cell, if necessary.

Just more code for another workaround where the actual problem (loss of multi-selection) was discussed already in the old realbasic forum and where TT Tempelmann showed us then on how to solve that.

I think half of the coding time I have spent is for fixing already working code which breaks with new Xojo releases. What used to be correct and perfectly legal is suddenly declared as all wrong, bad coding and the like. Sometimes I get frustrated… and I am not even talking yet about the Windows disaster.

I should do some paid work tomorrow, but I guess I have to fix the context menues and roll it out quickly.

---

<div class="post-metadata">

**Author:** ![Greg\_O\_Lone](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o_lone/32/49_2.png) [@Greg\_O\_Lone](https://forum.xojo.com/u/Greg_O_Lone)\
**Post date:** [April 18, 2018, 9:37pm UTC](https://forum.xojo.com/t/solved-2018r1-right-click-or-ctrl-click-no-longer-fire-cell-click-in-my-app/43057/6 "2018-04-18T21:37:45Z")

</div>

Oliver, we fixed the multiselect bug a few versions back. If you comment out your workaround code and just use the built in events, I believe youll find that it all works now.

---

<div class="post-metadata">

**Author:** ![Oliver\_Osswald](https://forum.xojo.com/user_avatar/forum.xojo.com/oliver_osswald/32/6972_2.png) [@Oliver\_Osswald](https://forum.xojo.com/u/Oliver_Osswald)\
**Post date:** [April 19, 2018, 4:17am UTC](https://forum.xojo.com/t/solved-2018r1-right-click-or-ctrl-click-no-longer-fire-cell-click-in-my-app/43057/7 "2018-04-19T04:17:21Z")

</div>

Thanks everyone who answered!

---

<div class="post-metadata">

**Author:** ![Oliver\_Osswald](https://forum.xojo.com/user_avatar/forum.xojo.com/oliver_osswald/32/6972_2.png) [@Oliver\_Osswald](https://forum.xojo.com/u/Oliver_Osswald)\
**Post date:** [April 19, 2018, 7:23am UTC](https://forum.xojo.com/t/solved-2018r1-right-click-or-ctrl-click-no-longer-fire-cell-click-in-my-app/43057/8 "2018-04-19T07:23:02Z")

</div>

I apologize to the Xojo team: this one is completely my own fault! I recently broke my own code. I feel embarrassed.

---

<div class="post-metadata">

**Author:** ![Dirk\_Cleenwerck](https://forum.xojo.com/user_avatar/forum.xojo.com/dirk_cleenwerck/32/533_2.png) [@Dirk\_Cleenwerck](https://forum.xojo.com/u/Dirk_Cleenwerck)\
**Post date:** [April 19, 2018, 7:57am UTC](https://forum.xojo.com/t/solved-2018r1-right-click-or-ctrl-click-no-longer-fire-cell-click-in-my-app/43057/9 "2018-04-19T07:57:34Z")

</div>

> [@383473:@Oliver Osswald](#):
>
> broke my own code

None of us ever had that happening to us. Oh No, not us.  
Never had the t-shirt either.  
And anyways, you can’t prove anything. 😉

---

<div class="post-metadata">

**Author:** ![scott\_boss](https://forum.xojo.com/letter_avatar_proxy/v4/letter/s/c5a1d2/32.png) [@scott\_boss](https://forum.xojo.com/u/scott_boss)\
**Post date:** [April 19, 2018, 5:59pm UTC](https://forum.xojo.com/t/solved-2018r1-right-click-or-ctrl-click-no-longer-fire-cell-click-in-my-app/43057/10 "2018-04-19T17:59:02Z")

</div>

[quote=383476:@Dirk Cleenwerck]None of us ever had that happening to us. Oh No, not us.  
Never had the t-shirt either.  
And anyways, you can’t prove anything. ;)[/quote]

unless I look in RevisionContorl and see the release notes/comments. 🙂

---

<div class="post-metadata">

**Author:** ![Ulrich\_Bogun](https://forum.xojo.com/user_avatar/forum.xojo.com/ulrich_bogun/32/1864_2.png) [@Ulrich\_Bogun](https://forum.xojo.com/u/Ulrich_Bogun)\
**Post date:** [April 19, 2018, 7:04pm UTC](https://forum.xojo.com/t/solved-2018r1-right-click-or-ctrl-click-no-longer-fire-cell-click-in-my-app/43057/11 "2018-04-19T19:04:33Z")

</div>

> [@383473:@Oliver Osswald](#):
>
> I apologize to the Xojo team: this one is completely my own fault! I recently broke my own code. I feel embarrassed.

That is nothing compared to the feeling when your own code becomes a riddle to you and you find yourself just wildly guessing when you try to solve a problem. I never had that experience and it did not take me weeks instead of days. I just read about it.

---

<div class="post-metadata">

**Author:** ![Julia\_Truchsess](https://forum.xojo.com/user_avatar/forum.xojo.com/julia_truchsess/32/499_2.png) [@Julia\_Truchsess](https://forum.xojo.com/u/Julia_Truchsess)\
**Post date:** [April 19, 2018, 11:59pm UTC](https://forum.xojo.com/t/solved-2018r1-right-click-or-ctrl-click-no-longer-fire-cell-click-in-my-app/43057/12 "2018-04-19T23:59:43Z")

</div>

> [@383591:@Ulrich Bogun](#):
>
> That is nothing compared to the feeling when your own code becomes a riddle to you and you find yourself just wildly guessing when you try to solve a problem. I never had that experience and it did not take me weeks instead of days. I just read about it.

And for some strange reason, it’s always that one part that you didn’t bother to comment because it was so obvious when you wrote it.

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [April 20, 2018, 2:10am UTC](https://forum.xojo.com/t/solved-2018r1-right-click-or-ctrl-click-no-longer-fire-cell-click-in-my-app/43057/13 "2018-04-20T02:10:15Z")

</div>

> [@383591:@Ulrich Bogun](#):
>
> That is nothing compared to the feeling when your own code becomes a riddle to you and you find yourself just wildly guessing when you try to solve a problem

In that case (if I really have trouble understanding my own code), I comment it, and I write another one (and I try not to re-use any part of the just cimmented code).  
Sometimes, this does not takes long and sometimes the code is looking far better (with comments of course) than the original.

---

<div class="post-metadata">

**Author:** ![Richard\_Duke](https://forum.xojo.com/user_avatar/forum.xojo.com/richard_duke/32/246_2.png) [@Richard\_Duke](https://forum.xojo.com/u/Richard_Duke)\
**Post date:** [April 20, 2018, 10:20am UTC](https://forum.xojo.com/t/solved-2018r1-right-click-or-ctrl-click-no-longer-fire-cell-click-in-my-app/43057/14 "2018-04-20T10:20:57Z")

</div>

> [@383648:@Emile Schwarz](#):
>
> Sometimes, this does not takes long and sometimes the code is looking far better (with comments of course) than the original.

usually, when you look at the code a years ago and wonder why you did that… some code so embarrassing…

---

<div class="post-metadata">

**Author:** ![Albin\_Kiland](https://forum.xojo.com/user_avatar/forum.xojo.com/albin_kiland/32/1028_2.png) [@Albin\_Kiland](https://forum.xojo.com/u/Albin_Kiland)\
**Post date:** [April 20, 2018, 10:23am UTC](https://forum.xojo.com/t/solved-2018r1-right-click-or-ctrl-click-no-longer-fire-cell-click-in-my-app/43057/15 "2018-04-20T10:23:33Z")

</div>

> [@383693:@Richard Duke](#):
>
> usually, when you look at the code a years ago and wonder why you did that… some code so embarrassing…

Never look back! Too dangerous!

---

<div class="post-metadata">

**Author:** ![Markus\_Winter](https://forum.xojo.com/user_avatar/forum.xojo.com/markus_winter/32/144_2.png) [@Markus\_Winter](https://forum.xojo.com/u/Markus_Winter)\
**Post date:** [April 20, 2018, 12:23pm UTC](https://forum.xojo.com/t/solved-2018r1-right-click-or-ctrl-click-no-longer-fire-cell-click-in-my-app/43057/16 "2018-04-20T12:23:25Z")

</div>

> [@383694:@Albin Kiland](#):
>
> Never look back! Too dangerous!

Looking back at old code usually means I rewrite the whole project from scratch - even if it was working perfectly fine as it was!

Stupid perfectionism.

---

<div class="post-metadata">

**Author:** ![Tim\_Jones](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_jones/32/8627_2.png) [@Tim\_Jones](https://forum.xojo.com/u/Tim_Jones)\
**Post date:** [April 20, 2018, 8:55pm UTC](https://forum.xojo.com/t/solved-2018r1-right-click-or-ctrl-click-no-longer-fire-cell-click-in-my-app/43057/17 "2018-04-20T20:55:24Z")

</div>

[quote=383708:@Markus Winter]Looking back at old code usually means I rewrite the whole project from scratch - even if it was working perfectly fine as it was!

Stupid perfectionism.[/quote]  
You can always do better tomorrow, that which you finished today 🙂 .

---

<div class="post-metadata">

**Author:** ![Ulrich\_Bogun](https://forum.xojo.com/user_avatar/forum.xojo.com/ulrich_bogun/32/1864_2.png) [@Ulrich\_Bogun](https://forum.xojo.com/u/Ulrich_Bogun)\
**Post date:** [April 20, 2018, 9:53pm UTC](https://forum.xojo.com/t/solved-2018r1-right-click-or-ctrl-click-no-longer-fire-cell-click-in-my-app/43057/18 "2018-04-20T21:53:10Z")

</div>

> [@383694:@Albin Kiland](#):
>
> Never look back! Too dangerous!

Thats exactly the reason I never finished my very first Xojo project  that which got me glued to Xojo from beginning on. I must have started it about at least 5 times, as I could not endure the code I wrote 2 months ago. Xojos learning curve was too easy to follow, and I somewhat lost interest in another restart. There are still beta testers begging me to continue 

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 7:10pm UTC](https://forum.xojo.com/t/solved-2018r1-right-click-or-ctrl-click-no-longer-fire-cell-click-in-my-app/43057/19 "2020-10-29T19:10:53Z")

</div>


