Hi all,
In my compiled app for Windows, right-clicking within a text field does not display the usual Windows context menu that includes copy/paste functions. Is there a way to get the contextual menu to display?
Thank you,
Jon
Text Field - Right Mouse Click?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Text Field - Right Mouse Click?
Hi Jon,
yes, "do it yourself"!
Means that you need to create an appropriate "popup" menu button and let it pop up:
Best
Klaus
yes, "do it yourself"!
Means that you need to create an appropriate "popup" menu button and let it pop up:
Code: Select all
on mousedown tMouse
if tMouse = 3 then
popup btn "you text menu here..."
end if
end mousedown
Klaus
Re: Text Field - Right Mouse Click?
Awwww man!
But ok. So, does this mean that I must also code what happens when someone right clicks a text field and chooses, "Paste"?
Thank you,
Jon
But ok. So, does this mean that I must also code what happens when someone right clicks a text field and chooses, "Paste"?
Thank you,
Jon
Re: Text Field - Right Mouse Click?
Hi,
Right-Click menus have not been regarded important enough to be implemented using the OS' system calls. So you have to code them yourself - have fun doing it in a way that doesn't look "self made" & clumsy ;-)
You may try to embed a browser window as field, so you can use JavaScript & HTML whenever LC script or LCs formatting capabilities are lacking - does the browser engine support standard OS context menus?
(And no, I cannot tell you why the mothership has taken this way instead of improving their very own product ...)
Have fun!
Yes.
Right-Click menus have not been regarded important enough to be implemented using the OS' system calls. So you have to code them yourself - have fun doing it in a way that doesn't look "self made" & clumsy ;-)
You may try to embed a browser window as field, so you can use JavaScript & HTML whenever LC script or LCs formatting capabilities are lacking - does the browser engine support standard OS context menus?
(And no, I cannot tell you why the mothership has taken this way instead of improving their very own product ...)
Have fun!
All code published by me here was created with Community Editions of LC (thus is GPLv3).
If you use it in closed source projects, or for the Apple AppStore, or with XCode
you'll violate some license terms - read your relevant EULAs & Licenses!
If you use it in closed source projects, or for the Apple AppStore, or with XCode
you'll violate some license terms - read your relevant EULAs & Licenses!