[BUG?] changeViewZOrder not working on CScrollView

A User Interface Toolkit mainly for Audio Plug-Ins (VST, AudioUnit, etc).
f.berti
Posts: 12
Joined: Thu Nov 02, 2017 5:50 pm

[BUG?] changeViewZOrder not working on CScrollView

Postby f.berti » Mon Feb 12, 2018 11:57 am

Hello,

I've just noticed that the changeViewZOrder method is not working on a CScrollView.
The method is not overridden in the CScrollView class, so the CViewContainer implementation is getting called and it fails to detect the child view for which the Z order must be changed.

I've manually got it to work by simply overriding the method in the CScrollView class and forwarding the call to the internal CScrollView member:

Code: Select all

bool CScrollView::changeViewZOrder(CView* view, uint32_t newIndex)
{
   return sc->changeViewZOrder(view, newIndex);
}

Anything wrong with it? Is there a better way to fix the issue?

Regards,
Federico

Return to “VSTGUI”

Who is online

Users browsing this forum: No registered users and 4 guests