Context menu- what to do?
-
So I input the snippet for the context menu for a panel right-click and I get this:
I get the idea of how to write the menu appearance in the code,
but how do I get the clicked items from the menu to perform a function?
Where do I write that (and how)? -
@VirtualVirgin Mouse callback
HiseSnippet 820.3ocsU00SaCCE0tzffrwzPZOrGi3oxDB0TJPmPnwn.aUaEpVYn8Fx3bKwhD6nXGfJD+m2+fsqSZosCDeTo0Gp78ii8Q264dSmTEGzZUJg5db+DfPesS29RSXyPlPRZsGg9Fm1LsAR8Jbsa+DlVCADJcluXcPmuLI+2u+ztrHljCibQHmnDb36hXgYj2N67MQTzAr.3XQ7XYWemVbkroJRkg7YFmpjDF+B14vgLaZkbHekoCIzO3D3W2uWCNaiF90qw40ZrYsOtIGX85Aa3u9l0azqdOFuZMBc18CDFUZWCy.Z7R2UEzuan5JYwCbhPKNKBrF9jt3KW3lzLTDEzYXwQSHzxcFUplonT8Nm1h.wc9GUxdad.uQHFunQK8XTx+EPI5XTpbAkVzoKOUjXFEwxmW4zRhcPrj.SPkhbIk1k5zTgYHMqFyt.NHEMtCQkMpVcEO7uk2x00EaPZi2krTuNLID46ss2PnmCllp3DkDMprTQ3krfJNtpFLsUYZnIKJ5LrwVoWljaDJYE3RDxxt23NOdWZUDrZRp.uDSp88KhhWzsKu0PHdJ4gJCbjrRNL2ac892P858fwrrMUEEAoOXXqhL8w.VQlEeFjtBVChxf6RD6.S1Vm840V4EEuwRTIaIEliRfA1GnhBrsK646KBHCp93oe1ZOlgY0EC7g4k.oFgkNz8fKwIwBUx7N6A5KLpj7bGzxHz4L4QWXnFx11HB7omyonERtlPcn2fuUe6gswCWIBLgVixTBIDDmGZrVuGsRTIYIsAYVKCDqspPe2Ztq4V2ccBJATWMTHnsKYx470FOK.bEw8T13LkJHKhYlbPytBZP.rMMg51pfkZgo+3qndASeUezoumKEWzoivvCeXNV5A3H1.+evwA6rVvYebII2LhfkcN3WS6Bpm34+gJyHjm2lYREVoygYwcwc6b.ecIJnzVoRIqHtvtp01VA5Bxfbi+f+FDz2ZSGDzeXPRLimpNkWLbZ2JNWtGjSx7uZLO94Kz1ymjOvNdcNFWReJmO4UcOf0lVfqMs.qOs.WeZAtwzBbyoEXimFn8aneNynhKFaHj1c1OeCGktujgJvb0J4uWf2ZiC
-
@d-healey Thank you :)
On a related note:
Panels can be set to "isPopUpPanel"
But what does that change in the panel function and how do inform it what panel it is a popup to?
Is it all mouse callbacks? -
@VirtualVirgin It's unrelated to the popup menu. It makes the panel into a popup window, but I don't like the little close button it has so I always make my own.
HiseSnippet 875.3ocsUssaSCCF1taFnkCBj3AHZW0gPSMkxVAzDk0sAUvFQT.wU.dNtKVywND6LnBMIdq3Vdj3M.9cRZaJTNnJHWDk+Ce9+K+mbPplwMFcJB234iS3H7kHCGqrQ8inBEZvtH7UHGPMVdpWgpcFmPMFdHBiW4gNE35qhxe9582gJoJFelJD5kZAi+DQrvNSaPuGKjx8og7mKhq3cmdCXZUesTmA7YERKTBkcB8X9gTma0HnGQMQH7MHg9c7G0kQ2rqem1LV6ta09Naw3zQi3a5e6s5zcTmQTVq1H741KTX0oCsTK2fvqtiNb7vH86UEA3kBi3HI2I3iFBQtP89ZYn6WzoE0ORHCCljnLH3TBlk1VoHsccxAhPwT8yReWM2f2LDUSf3ZySuUlid9UoWqJzaATBWgRqVPoqQFxREI1YVb74hjAJnZBoG9bTovWTsOiI80fGJ6FwzS36mBBSQzbyVstoG7Z860nQCnXYrdmRS8BnJtz2aauIPOla6qiSzJPn4ZElWKGjPIEJt2nLEyJzJOsZmLqUq7cPS0xlrI3tIbzxL95M9Xi54e4s81d9d2uLZaXf7zCLA5jrjl1TvQu6NwDSpM7I1fvdFD4ESsxfu15aXb5yoPepTdDz407G4FbRU38gZK+opl47qwYM79QSiFsPakmkjmtPytQhzeGvlpr3i3oUyNNGgx978RjecuT0VcVQZohiZ0.kv9zDt5WM.fJykvWuXvtTK00.VpC7KgmZENJf2keJL9WzNVmrK2bhUm.SxSK.H74s4Vu7jlUWADIfVxKPJJlnOLcCwWd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