[BUG?] changeViewZOrder not working on CScrollView

A user interface toolkit mainly for audio plug-ins (VST, AudioUnit, etc).
f.berti
Posts: 14
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

Arne Scheffler
Posts: 188
Joined: Mon Jun 20, 2016 7:53 am

Re: [BUG?] changeViewZOrder not working on CScrollView

Postby Arne Scheffler » Thu Mar 01, 2018 3:25 pm

I've fixed this now and it will be part of the official VSTGUI repository some day.


Return to “VSTGUI”

Who is online

Users browsing this forum: Google [Bot] and 1 guest