Print Page | Close Window

SplitterWnd with few hidden rows and cols?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7780
Printed Date: 13 November 2025 at 11:56am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SplitterWnd with few hidden rows and cols?
Posted By: Jimor Marlow
Subject: SplitterWnd with few hidden rows and cols?
Date Posted: 12 August 2007 at 4:57pm
Hi, CXTSplitterWnd can hide only one row and only one colunm. I need to change panes count, f.e. I've created splitter 4x4 panes, and I want to show 1x1, 2x2, 2x3 etc. panes without unused split bars.
Anybody can help?



Replies:
Posted By: Oleg
Date Posted: 13 August 2007 at 1:08am
Hello,
You can destroy current splitter and recreate it with number panees you need.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Jimor Marlow
Date Posted: 13 August 2007 at 1:51am
Yes, I can. But I should destroy ~16 views and recreate them again too. It's little bit slow. And I should care about my realtime process and his interface windows during recreate. Plus, save/load panes states and its contexts... It's possible but expensive...

Yesterday, I derived from CXTPSplitterWnd and add some new feature - to show/hide requried panes wnd and renumber Id's. It's almost working now, I think I'll clear some minor visual bugs, add some helpers, and all be ok. (I hope.)
PS. I just had to disable ID_WINDOW_SPLIT message, splitter tried to move some hidden split bars I don't want.


Posted By: Oleg
Date Posted: 13 August 2007 at 2:24am
Hello,
 
You don't need destroy views. you can reparent them to CMainFrame (pView->SetParent(pMainFrame) and then reparent to new splitter. etc


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net