Questions tagged [ctabitem]

15 questions
3
votes
1 answer

Java SWT - Set ForeGround/Background Color of CTabItem (of CTabFolder)

I'm using a CTabFolder with several CTabItems. I would like to be able to set the background and foreground color of only a single CTabItem's tab. There is an option for me to set the Font, but I can't find anything for the color or background of…
JOhn Francis
  • 31
  • 1
  • 2
3
votes
1 answer

How to determine the correct position of an Image inside of a CTabItem

I add some CTabItems with Images to a CTabFolder: CTabFolder tabFolder = new CTabFolder(someSection, SWT.BORDER); ImageDescriptor deleteImageDesc = sharedImages.getImageDescriptor(ISharedImages.IMG_ETOOL_DELETE); Image deleteImage =…
Danny Lo
  • 1,553
  • 4
  • 26
  • 48
2
votes
2 answers

How do I show a table inside a CTabItem using the SWT

This is probably a trivial question for most but here goes... I am using SWT and want to show a table inside a CTabItem (or a TabItem if it's easier). I tried to create the table and use the CTabItem as the parent when doing so, however it doesnt…
user816526
  • 25
  • 4
2
votes
1 answer

SWT: How to detect when a new CTabItem is added to CTabFolder?

I am adding CTabItems dynamically, but when I add a new CTabItem and call setSelection on CTabFolder, it doesn't call selectionListener of CTabFolder. Is there any other way to detect when a new CTabItem is added to CTabFolder. Any help will be…
Usman Liaqat
  • 114
  • 9
2
votes
1 answer

SWT: How to redisplay new contents of a CTabItem

I have a CTabFolder with one of its CTabItems which may change its contents on a given user action. But I don't know how to force the display once the contents have changed. I get the tab item blank; if I resize the window suddenly everything…
Germán
  • 4,525
  • 3
  • 31
  • 37
1
vote
3 answers

Set header-width of CTabItem

Can the width of the tab-header of a CTabItem be set arbitrary? Thnx in advance! Kind regard, Marcus
Marcus Toepper
  • 2,403
  • 4
  • 27
  • 42
1
vote
1 answer

Why SWT CTabItem doesn't dispose child widget recursively?

The javadoc of SWT CTabItem.dispose() mentioned that: This method is not called recursively on the descendants of the receiver What is the reason behind that? If the CTabItem is disposed, the child widgets are not displayed anymore. Why they are…
Hei
  • 70
  • 6
1
vote
1 answer

Measuring font fontsize of CTabItems in SWT?

I have got some CTab items, which I want to measure, especially I need to know the actual Font Size, so that if I change the Tab Size - I do not won't set it smaller, than the font-size. How can I measure the fontsize of CTabItems in SWT?
Skip
  • 6,240
  • 11
  • 67
  • 117
0
votes
1 answer

Is there a way to make CTabItem not accessible by the user?

I am using CTabItem to make selectable interfaces. I need one tab to be unavailable for the user until some other events, but I cannot figure out a way (as I don't see such methods in the documentation. Any hints on how to do that?
user3914897
  • 115
  • 2
  • 4
  • 11
0
votes
1 answer

Set Controls with arbitrary positions on CTabItem

I am new to SWT, and I need to set the controls positions arbitrary on CTabItem. I've used the following code, but it seems that it had no positioning effect, it just add the component to (0, 0) Label userName = new Label(folder,…
Muhammad Hewedy
  • 29,102
  • 44
  • 127
  • 219
0
votes
1 answer

Why is only 1 of my ScrolledComposites scrolling with the mouse wheel?

Here's my current setup... I have several tabs (Using CTabFolder and CTabItems) each with its own ScrolledComposite. I was able get the first tab working with the answer from https://stackoverflow.com/a/23882007/4288015 but this does not work when…
0
votes
1 answer

SWT CTabItem meaning of setData and setControl

I started with SWT programming and I am trying to reprogram this example, where CTabItem's are created within a CTabFolder. But since I am a very noob in GUI programming, some things are very unclear to me. What is the purpose of setData() and…
dildik
  • 405
  • 6
  • 16
0
votes
1 answer

how to add more than one items in one CTabItem?

CTabItem tabItem1 = new CTabItem(newTabFolder, SWT.CLOSE); tabItem1.setText("Tab 1"); Label lab2 = new Label(newTabFolder, 0); lab2.setText("Hello World"); tabItem1.setControl(table); tabItem1.setControl(lab2); I am trying to have a CTabItem which…
Asad Ullah
  • 117
  • 1
  • 3
  • 11
0
votes
1 answer

SWT Use Composite from File

I am trying to use a composite that I have created in a separate file in my app. I am unsure how to set the control of my tab to the compsoite file. Package: hm_forms Composite File: Comp_HM.java Main File: Frm_Main.java Control: tabHM I am thinking…
Talon06
  • 1,756
  • 3
  • 27
  • 51
0
votes
2 answers

SWT CTabFolder Check If CTAB Exists

I am trying to create a tab inferface for my application in SWT. I would like to setup my menu button so that when it is clicked it check to see if a tab is open. If it is open I want to switch to the tab and if it is not I want to open it. I have…
Talon06
  • 1,756
  • 3
  • 27
  • 51