Adapt Editor and GUIComponents to recent VSTGUI changes
This commit is contained in:
parent
aaacd1450c
commit
a197e3a76d
2 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue