Get "this" for current component in Global laf
-
@Christoph-Hart said in Get "this" for current component in Global laf:
Why aren't you using a local look and feel? It's better and faster if you don't have to lookup the id and branch, but just assign each component the look and feel function that it needs.
Scroll up :) Local LAF has a bug and doesn't work here.
Also - https://forum.hise.audio/topic/7533/local-laf-is-broken
-
@Christoph-Hart said in Get "this" for current component in Global laf:
Why aren't you using a local look and feel? It's better and faster if you don't have to lookup the id and branch, but just assign each component the look and feel function that it needs.
Yes I would but, as David says it seems to be broken.
-
-
@clevername27 Got a link?
-
@d-healey It's in one of my forum posts, I don't remember which. A search should do it? Let me know.
EDIT: This was the thread, but it doesn't seem to start at the first post?
Here ya go –
-
@clevername27 Does this fix the problem of local laf not working?
-
@d-healey It's not not working, it just doesn't propagate the drawPopupItem method to the popupmenu (which is a different component).
I'll need to manually propagate the look and feel to the popup menu, I'll check how to approach this best...
-
@Christoph-Hart said in Get "this" for current component in Global laf:
I'll need to manually propagate the look and feel to the popup menu, I'll check how to approach this best...
-
@d-healey Are you referring to just the pop-up component? (I'm not familiar with the problem you describe.)
-
@clevername27 Local LAF for the popup function doesn't work when applied to panels. Looks like Christoph is on it :)
-
@d-healey Got ya - I was posting the code to get the component ID in an LAF function.