Adapt Editor and GUIComponents to recent VSTGUI changes

This commit is contained in:
redtide 2023-05-16 11:07:57 +02:00
parent aaacd1450c
commit a197e3a76d
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View file

@ -792,7 +792,7 @@ void Editor::Impl::createFrameContents()
#endif #endif
auto createAboutButton = [this, &backgroundAbout]( auto createAboutButton = [this, &backgroundAbout](
const CRect& bounds, int tag, const char*, CHoriTxtAlign, int) { const CRect& bounds, int tag, const char*, CHoriTxtAlign, int) {
SHoverButton* btn = new SHoverButton(bounds, this, tag, backgroundAbout); SHoverButton* btn = new SHoverButton(bounds, this, tag, 60, backgroundAbout);
btn->OnHoverEnter = [this, btn]() { buttonHoverEnter(btn, "About sfizz..."); }; btn->OnHoverEnter = [this, btn]() { buttonHoverEnter(btn, "About sfizz..."); };
btn->OnHoverLeave = [this, btn]() { buttonHoverLeave(btn); }; btn->OnHoverLeave = [this, btn]() { buttonHoverLeave(btn); };
return btn; return btn;

View file

@ -190,9 +190,10 @@ public:
const CRect& size, const CRect& size,
IControlListener* listener, IControlListener* listener,
int32_t tag, int32_t tag,
CCoord heightOfOneImage,
CBitmap* background, CBitmap* background,
const CPoint& offset = CPoint (0, 0)) const CPoint& offset = CPoint (0, 0))
: CKickButton(size, listener, tag, background, offset) : CKickButton(size, listener, tag, heightOfOneImage, background, offset)
{} {}
CMouseEventResult onMouseEntered(CPoint&, const CButtonState&) override; CMouseEventResult onMouseEntered(CPoint&, const CButtonState&) override;