What are you using for your mousecallback hover effects?
-
@Fergler Are you experiencing this with LAF and mouse states broadcaster or with a panel and paint routines as well? Right now I'm experiencing the mouse events broadcaster not firing on component change properly, so sometimes when leaving a component it doesn't fire, resulting in stuck animations,
The only way to be sure is to have a timer object fire off whenever you hover a control, and check against the control id with Content.getComponentUnderMouse(), which will return false once your mouse moves away, and use that to stop the timer (or a target counter if you're using it to animate hover and click).
-
@aaronventure can you reproduce this with a minimal example?
-
@Fergler if it's a panel and you use one of this callback options
I have experienced problems with it, so I always use "All Callbacks" now, try to use that and see if it's working
-
@ulrik No change in behaviour setting All Callbacks
Here is the code that renders the buttons in my picture.
function createPreset(panelName, parent, column, row, preset) {; reg qsW = 120; reg qsH = 25; reg margin = 5; reg qsX = margin + column * (qsW + margin); reg qsY = margin + row * (qsH + margin); reg qsBg = 0x11FFFFFF; reg qsPanel = Content.addPanel("qs" + panelName, 10+qsX, 10+qsY); Content.setPropertiesFromJSON("qs" + panelName, { "parentComponent": parent, "text": preset, "width": qsW, "height": qsH, "allowCallbacks": "Clicks & Hover", }); qsPanel.setPaintRoutine(function(g) { reg ar = this.getLocalBounds(0); g.setColour(qsBg); g.fillRoundedRectangle(ar, 4); g.setColour(defaultColour); g.drawAlignedText(this.getId().replace("qs",""), ar, "centred"); }); qsPanel.setMouseCallback(function(event) { reg pr = this.get("text"); if (event.clicked) { for (var i = 0; i < pr.length; i++) { reg component = Content.getComponent(pr[i][0]); component.setValue(pr[i][1]); component.changed(); } } if (event.hover) { qsBg = 0x33FFFFFF; this.repaint(); } else { qsBg = 0x11FFFFFF; this.repaint(); } if (event.hover && Content.isMouseDown()) { qsBg = 0x66BBBBFF; this.repaint(); } }); return qsPanel; }
-
I’m thinking of just making a global variable for ‘something is highlighted = true’ and altering the state directly in the paintroutine instead, which I think I did for some other buttons and it worked better
-
@Fergler You should use an inline function and
local
variables.reg
variables should only be declared in on init. Within paint routines and mouse callbacks you should usevar
.You also have a semi colon at the end of your first line that will cause some fun.
For things like
qsBg
you can assign it to the bgColour property of the panel so you can access it within the paint routine.You should probably avoid getting component references within a mouse callback. This should be done in on init instead.
You should probably do this whole thing with a single panel, or use child panels. Adding a separate panel for each one is not necessary and will probably make more work for you in managing the components.
Anyway the mouse hover seems to work here
HiseSnippet 11633.3oc68s1baijjfx8LZhk5t41ct3hMhKtu.yMtIHaSSwmx5Q6dWYYIacVuVQ4tmNzpvADIHIrAI3..pGcO5ey8o6W2E2ef4xrdW.E.oHoaK61cLiLQgpxJqrxLqLyJqBN2D4LriSm2ENzczHmnkV5Q+tSB7a6DF5Grzixc1sibV5Q+mWt0sCi5uSea2gKs+KW5Q+WV9P6vHm.KZQu31Q1ggNcV5QO528JrfGk62uD4+9+9u9BaO6gscjEszR+fuaamCbG3FIK8j+s2354smcGmybGnT6F+a621e3N9d9iA742sbkkFY29C18bNxFq12r7RO5OraG2H+fVQ1QNgPcdgemaa02+5gz5+CtgtW54fOTcoV.fnEuzN8c85HFqgvH+2qLx+czQ9+skOzsiqnbIE3eh7BKYKToAO5axBkpdOPoGofR+dJJ8mVtU6.2QQx2f3y+ok2eHLgz0FH0pnBstK8Mu+Or7N9PMFFUdf8Gb1K.dPzhBqUoRIK3OE2ZkU.xcXjEf2QVO2pcfCLDNIvIzIpP9Q1Cc7PBO917krxC+engUgeMhTk7..jsuZ1.npDB0DPnFBhUbG54Nzwp63gsib8GpCEAPJYMxN.FQkrZ66MdvvRVA9WCERpVQqeYkb477aa6Y8WC+Q.UpVqxVJE8ZnnZMkkLvNnm6PnPnLkp8WfRXu5Ir9w5asJff7IrWTTEr+jZ8A7gV4WatxunGT6J2Ts5dj+SqiOAGlvq4Sa1c5PJpP9+ZXd.bJjgpUdBfnr+8mH8.7+3MDHF.uxHmfHWmPXhev+qVGejAnfzqb4ojzc7GLxeH7i7axIxj2F4bCoHBIlVz0tch5CkATDZA8cb60OhTxqokX644e8NveuDjcCg2jeaOOKYAzZcYOpXNokunGT1cEITDFsfLP.4unS8GGArGE3rGE5QmryckcfE7+d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OKmUNw8m+Y2O6jSd1WvyHm511ucemnOuTbUY5xFqOSlQT+RkSxdD59OfIMF0XiPnPZYU0BYa7n3VtsGLRKP2HCiMpL.PP9qv4OzOxJpfYwD1XCfbwcJe9ncpUVri8GHG9k52aFsKn7zYjwUbYlYMCMte2e9MkeT9H2QtOzRQC7y9mws3G0JPUa7wKMJmpN+iaZZrVhrfXi0lxjfPEIm57zn9utybQrkrVv4NxhhrEK6QRA+Z9qv0OoNVAdllVBsnsG+wymEiKkpkSKZgiIdJsDOXJFxnECgSPKiDTUwUKoYA0pOK1En1prMLPYWHlGiCpe+giP0exgrL3WZT+TGrh2OEiz4eLd+FcSdgsZ+puv1Fa7Y45ZeBRlX0N+yf00p8.ccsZOrWWq1Cx00psPVWSco.sE1Ln.8i7xa0mFsg0+p1voSlp9mRsg0+bPaX8GnZCq+vVaX8GjZCq+kf1vZ7DPNW5GHEVM9pZvrDlpQozeJNNJ7d9iqBv5ytjr.CeHo8SAo9nn5qxBfd8vQsmBJ8YXjMtakkVxYvkNc53zo0Pma.+lcBWZok9+CsQpDD
-
I can’t load the snippet
I think I picked up reg because this is in a namespace and the best practices doc said it was faster and I get 32 per namespace. But, I haven’t noticed any issue.
Oddly, the semi-colon removal had no effect. Was hoping it was a magic bullet.
For qsBg, I’m not sure I follow but let’s start with the idea of access within a paint routine; when/why would it not have access to qsBg? (it does, currently).
I fixed it by taking the colouring part out of the mouse callback and into the paint routine while also checking the component under mouse is not the same component.
if (Content.getComponentUnderMouse() != this.getId()) {
g.setColour(0x11FFFFFF);
} else if (Content.isMouseDown())
{
g.setColour(0x66FFFFFF);
} else {
g.setColour(0x33FFFFFF);
} -
@Fergler said in What are you using for your mousecallback hover effects?:
can’t load the snippet
You need to update your HISE build to the latest develop branch
It's good practice to make code modular and self contained. Panels have properties that you can read within paint routines so it's a good idea to use those rather than using external variables.
-
@d-healey I am on 3.6.2 develop branch, but I did not build it I downloaded it from releases page
-
@Fergler said in What are you using for your mousecallback hover effects?:
I downloaded it from releases page
Then you are on the master branch.
-
Github is a confusing beast.
-
@Christoph-Hart Minimal example here
https://github.com/christophhart/HISE/issues/524
The solution currently is to have a timer watchdog that checks for whatever the current component under mouse is and sets the mouse state values for all other components to 0, but that's a bit silly.
-
This can be fixed by using Broadcaster.setEnableQueue(true); Why this would be false by default is beyond me.