Canvas.MouseDown Event, code:
Return True
gaves this explanation:
Of course, this explanation does not say whay I placed a Return True here…
Canvas.MouseDown Event, code:
Return True
gaves this explanation:
Of course, this explanation does not say whay I placed a Return True here…
What version of Xojo?
Did you download the documentation?
Or did you search for ‘Return True’ outside DesktopCanvas?
I have Xojo 2025r3.1 installed here and I see the following when I use the IDE Documentation button to search for DesktopCanvas MouseDown:
Edit: looks like you searched for True, not even Return True
Thank you for looking and responding to this.
This mainly is for newbies who do not know (read below what do Return True in a MouseDown Event).
Sorry Alberto, I searched nothing. I only add an event, type two words and a space and get the contextual wrong explanation.
This is the IDE Code Context help, not the Xojo Help Window nor the Documentation.Xojo… help pages from the web.
The Xojo version is the current one (2026r1). I do not think it is relevant. (version number is relevant only if one use an old / noit the current one).
Being here since 1998, when I use an old version, I check with the last one in case it is a bug that was corrected.
In this case the Help read True and display a text about True, not about Return True who is a different thing…
As you know, Return True in the MouseDown Event enable the other Mouse Events (I had code in MouseUp who do not worked before and works fine now.
But MouseEnter and MouseExits are fired without Return True there…
“Va comprendre Charles !”
I stayed a bit too far from these events.
Xojo can also add a line there:
To explain what to do if the user want to add other Mouse Event(s).
DesktopCanvas was in another discussion and only related because the MouseDown (etc.) Events are in a DesktopCanvas.
Yes, this is the complete screen shot.