Hello! When I tried to use the IPopupMenuControl and make a menu with many items I found that the menu scroll didn’t work properly. In void IPopupMenuControl::Expand(const IRECT& anchorArea) is calculating
float maxB = mMaxBounds.B - panelHeight - (mDropShadowSize * 2.f);
and then
if ( y > maxB ) y = maxB;
But maxB can be negative and in this case menu scroll doesn’t work. I’m not sure that it was right but I added after that
if (y < 0) y = 0;
and now the scroll works correctly
Hope it will helps to someone
Another moment: when I put cursor on scroll button the menu scrolling only to one page. If I need to scroll next I have to move the mouse but not to click