[BUG?] changeViewZOrder not working on CScrollView

A user interface toolkit mainly for audio plug-ins (VST, AudioUnit, etc).
Post Reply
Posts: 24
Joined: Thu Nov 02, 2017 5:50 pm

[BUG?] changeViewZOrder not working on CScrollView

Post by f.berti »


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?


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

Re: [BUG?] changeViewZOrder not working on CScrollView

Post by Arne Scheffler »

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

Post Reply