Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Q: Having a MasterDetailsBlock in cTabItem

MasterDetailsBlock is not a an SWT class - it is provided by UI forms so 
you should ask this question on the eclipse.platform newsgroup.  All the 
widgets in MasterDetailsBlock seem to be created as children of a SashForm 
which is a subclass of Control.  It appears that you need to somehow get 
that SashForm.  However, I have never worked with MasterDetailsBlock so I 
am only guessing.




jayaraj muthukumarasamy <jmuthuku@xxxxxxxxx> 
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx
02/27/2006 02:44 PM
Please respond to
"Eclipse Platform SWT component developers list."


To
platform-swt-dev@xxxxxxxxxxx
cc
jayaraj.muthukumarasamy@xxxxxxxxx
Subject
[platform-swt-dev] Q: Having a MasterDetailsBlock in cTabItem






Hi,
  I am trying to create a UI where I have subtabs
(cTabFolder, cTabItem, etc) and in the subtabs I want
to create a MasterDetailsBlock. i.e. when I click on
subtab#1 I want to see one MasterDetailsBlock and when
I click on subtab#2 I want to see a different
MasterDetailsBlock. 

I see a method called setControl(Control control) in
cTabItem that is typically used for this purpose.
Since a MasterDetailsBlock not a subclass of Control I
am not able to flip between the 2 MasterDetailsBlock
when I click the 2 subtabs.

btw, if I add a Button or Label under the 2 subtabs I
am able to switch between the two.

I'd appreciate if someone could provide some pointers.
Thanks in advance.

- J 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev




Back to the top