Page 1 of 1

[BUG?] changeViewZOrder not working on CScrollView

Posted: Mon Feb 12, 2018 11:57 am
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?


Re: [BUG?] changeViewZOrder not working on CScrollView

Posted: Thu Mar 01, 2018 3:25 pm
by Arne Scheffler
I've fixed this now and it will be part of the official VSTGUI repository some day.