Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Splitter » Splitting a single ctrl (or appearing to)
Re: Splitting a single ctrl (or appearing to) [message #41757 is a reply to message #41704] Fri, 17 January 2014 08:37 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14265
Registered: November 2005
Ultimate Member
deep wrote on Sun, 12 January 2014 04:22

Actually I managed it by using two GridCtrl side by side using splitter. And on scroll I shift other control also. I wanted fixed columns.



The last I needed that for ArrayCtrl, I did the same.

The keys is to use WhenScroll and WhenData callbacks to synchronize, something like

ArrayCtrl left, right;
left.WhenScroll = left.WhenSel = THISBACK(LeftToRight);
right.WhenScroll = right.WhenSel = THISBACK(RightToLeft);

void MyApp::LeftToRight()
{
   right.SetCursor(left.GetCursor());
   right.ScrollTo(left.GetScroll());
}





 
Read Message
Read Message
Read Message
Read Message
Previous Topic: DHCtrl in SplitterForm
Next Topic: MayBe extend Styles of Splitter?
Goto Forum:
  


Current Time: Mon Jul 07 10:07:03 CEST 2025

Total time taken to generate the page: 0.02888 seconds