Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我观察到,当您隐藏水平滚动条时,使用
sbxStudyBtnHolder.Perform(WM_HSCROLL, SB_LINEDOWN, 0);
我们怎样才能使它成为可能?
您仍然可以使用以下方式滚动它ScrollBy:
ScrollBy
ScrollBox1.ScrollBy(-8, 0);
或者
ScrollBox1.ScrollBy(-ScrollBox1.HorzScrollBar.Increment, 0);
在此之后你不能再滚动了。试试这个:
ScrollBox1.ScrollInView(panel[n]);
panel[n]是你喜欢看的TControl。
panel[n]