@d-healey said in Can I use this.over or this.down for paint routine on panel?:
@VirtualVirgin In the a panel's mouse callback you get a parameter, usually called event. This holds that information.
Link Preview Image HISE | Scripting | Script PanelThe reference guide for the ScriptPanel
favicon(docs.hise.dev)
...
And I just re-read your question - you need to use a mouse callback, the panel is only repainted when you call the repaint function, so you can't dynamically get mouse information within it.
Thanks,
that is generally the way I do it, but I was trying to transfer an LAF to a paint routine and was wondering if there was any trick to lower the workload of it that I didn't know of.