Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Minimize of CTabFolder in SashForm
Minimize of CTabFolder in SashForm [message #327120] Thu, 10 April 2008 14:24
Eclipse UserFriend
Originally posted by: amarjeet.batra.gmail.com

Hi,

I have a Sashform having CTabFolder as its children. Also there can be any
number of CTFs. These CTFs have minimize/maximize in their toolbar. The
maximize is not a problem as I can call setMaximizedControl(Control ctf)
on SashForm. But when I click minimize on the CTF, the CTF itself gets
minimized and the SashForm holding it retains its state. I dont know how
to resize the SashForm so that it exactly fits only the toolbar of the
minimized CTF.


I thought of setting the weights on SashForm in such a manner that the
minimized CTF gets only that much weight so that it appears minimized. But
this solution didnt come out right because whenever the bigger
composite/shell holding the SashForm is resized, all CTFs resize
themselves accordingly. So the minimized CTF either started disappearing
or started bulging out.


I posted the same problem earlier also but at that time I was only looking
for the index of the subject CTF so that the weight at same index could be
changed in SashForm. I now know which CTF is being min/maximized and I
know the index of the weight to change but I am sure that changing the
weights is not the right solution. Also the algorithm to find out the
weights is a big task when there can be n number of CTFs
Please see :
http://dev.eclipse.org/newslists/news.eclipse.platform.swt/m sg39578.html



One more person has posted the same problem earlier also but there were no
replies to that. He has also given a small snippet over there. In that
snippet it is clear that the CTFs get minimized but the SashForm sticks to
its place.
Please see :
http://dev.eclipse.org/newslists/news.eclipse.platform.swt/m sg33670.html



I tried looking at subClass "Splitter" of SashForm but I dont think it was
of much use.


I am sure there must be a way out because in the Eclipse workbench window
the views/editors appear as CTabFolder with a toolbar. If we stack them on
top of each other by dragging and say get 4-5 views then thay all appear
to be in SashForm and the minimze/maximize work perfectly on them. Also
after minimizing we can't even drag that Sash back. I am looking for
exactly the same kind of functionality.


Any help would be really appreciated. Thanks,
Amar
Previous Topic:Job API : scheduling examples
Next Topic:Include jre in pde build!
Goto Forum:
  


Current Time: Thu Jul 18 04:38:48 GMT 2024

Powered by FUDForum. Page generated in 0.03071 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top