Click outside = Close panel - How ?
-
@matt_sf I see , Cool !
-
@lalalandsynth @matt_sf nice, although I'd rather do it this way
HiseSnippet 911.3ocsVEtaaaCDlzIbMVasXEXO.B8Wp.cA1accEHnndwIYvXKIFycACX+nfgh1hMTjBRToyXn.C6IqOR8MX6HojEcmcQgwp9gg4c76tOd56NpokZFupRWhv8ewxBNB+EjYKUlrwYTgBM4DD9djyoUFdYr2zwKKnUU7TDFu2OZMf6uOx87tmeLURULdmID5Jsfw+YQtvzYc5neRHkmQS4uPjGr6GOZBSqFqk5ZfO6QFfJnranK3WPsaqGAg+rSSEFc4LC0vqP38OVmtbVl90J+9uRTItVxsKFhlAAxa9LsL0xXqUz3LgLcZ64tBAQYZWUXOeU3qHmKREqr2UM9Rmi3NDg0Cbu0o2dqQuggzaP.81.kvATZeOktOYFqTTX57X4ymSlnfWNyoPYOjJ98h587djwZXGJyg4za3mUBKVgH4ICF7nX3mGdTTDT5qLw2RKiOt1XzpgwOKtE5BtYrNuPqfEIOnw+C.Tcfxr03xshw6dcHE5h5hshv40BHJRnjBEOddshYDZUrV0PAKxRsLg0B6QPfk07GF8mQ88o7vJn92tOuyihdyQQMQ3vJaRcdGSkxqAAWx6GdGGZiF2bttthuZysjJgeKjeWhCB8U1DlLmJqrockGVFUsfmlXohK5AGsKzF9kpDWjhdST766Z97M5qgqRd4Fca6zJ+P.ST04WyKCKf1MBxu00zjsqoCa4X92oAaTqlnDlKK3ps0HhZDBV8eCqfsZbp+60n98UPj.D48IMkSjix.0vtwH+5jSnFZaPf3A4nfWZDV5iOgeKLQx2R0mbBu5Fit.FtrR4Am3OhT9GqFa8WzQK6V76iPAQ5.ejtaaqKUwkt.c.wqmBhC7rLbwqEolrUFd6eOJiKVjYBs.ZPPa2nDqr4YrT.+K9RkbI5112LvfIb.oHaiT2g35411YazqFUPKgPDd.aOGn+6.KXToNsVRMqO+zdoQiCP.t1PK6fIUkvrL7Rk+2Fp9wRw6SlJLrrMywdafifT6SAGatJ5tjSmOmyLcDbexY+1ml6cP+ht1HTKNmZJEfLfbQc9L31XFGxtBzI1A.3d1VU+5Asccy3pT2h+AdZbNztF23bXqSTNkUpeIy2faur6.mEfSJ2878gO3.VG20WSFb3.TNbu6KYL6w+qgoGaFy2rCX91c.yi2ALe2Nf4I6.lueGv7zOHF6m77C0Fctuc.LL8T2LVL9TEETVNUH5eAfC0WyH
-
@ustk This is cool , however, I lose access to anything under the the holder panel.
All sliders etc . I seem to recollect that was easily solvable , cant remember how ?
Can I not pass mousecallbacks through the holder panel or do I need to have the holder panel appear and disappear as well ? -
@lalalandsynth In my snippet, you'll lose lower Z component access only when the menu is opened, which shouldn't be a problem, right?
-
@lalalandsynth The whole purpose of the holder is to handle the callback because you want to close the popup when clicking outside. Or there's something I don't get in what you want to do
-
@ustk That is exactly right. I am trying to implement this into what I already have going , probably doing something wrong.
The holder panel is blocking all sliders on my main interface at all times.
ONly does that in your snippet while button is engaged. -
@ustk Got it , silly mistake ! Thanks guys !
-
@lalalandsynth Note that you should also be able to use a custom laf with a standard combobox or panelPopup
-
Works nicely!
-
@ustk ah yes I used your way for an "About" panel popup in my last project.
@ustk said in Click outside = Close panel - How ?:
you'll lose lower Z component access only when the menu is opened, which shouldn't be a problem, right?
You're right
-
This post is deleted! -
In my project the holder panel is called ResizeMainPnl.
When I drag my sizing panel into that panel it changes the color/contrast ?
I cannot see why it would do that ? -
@lalalandsynth Why not use LAF as @ustk suggested?
-
@d-healey well, mostly because I got this working at the moment. :)
And I should be able to put these labels into a panel without it changing the color, would like to know why it does that. stupid mistake, fixed.And finally, I know nothing about LAF at the moment.
Can I use that and have the 6 state png buttons , click outside panel to close etc?
I thought it was only for svg. -
@lalalandsynth said in Click outside = Close panel - How ?:
Can I use that and have the 6 state png buttons , click outside panel to close etc?
You can use images in LAF but generally the point of LAF is to do everything with paint routines so it scales nicely and doesn't require any image files.
-
@d-healey Yep , indeed. I might move to that but not doing vector GUI for this one.
BTW: Solved my color change issue, stupid mistake
-
@d-healey I can see that I can customize the ADHSR graph , pretty cool , can I also customize the Eq , wavform display and Analyzer ?
-
@lalalandsynth said in Click outside = Close panel - How ?:
can I also customize the Eq , wavform display and Analyzer ?
I don't think so
-
@d-healey Maybe that should be added ;)
-
@lalalandsynth said in Click outside = Close panel - How ?:
@d-healey Maybe that should be added ;)
You have my support :D