Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Problem with TabFolder, MouseListener and RedHat 5

Hi all,
i've solved my problem using custom SWT element (CTabFolder and CTabItem) and it works fine.
I'll enter a bug report when I'll have more time.

Thx,
Nico

2008/1/30, Steve Northover <Steve_Northover@xxxxxxxxxx>:

No idea.  You should enter a bug report with the code and we can try it out.  I'm not sure we have any RH4 machines around anymore.  If not, we can debug it with you throught the bug report.



"Nicolas Sanchez" <sanchez.nicolas@xxxxxxxxx>
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx

01/30/2008 06:46 AM

Please respond to
"Eclipse Platform SWT component developers list."        <platform-swt-dev@xxxxxxxxxxx>

To
platform-swt-dev@xxxxxxxxxxx
cc

Subject
[platform-swt-dev] Problem with TabFolder,        MouseListener and RedHat 5







Hi,

I have a problem using the TabFolder with RedHat 5.
I have a TabFolder with 2 TabItem and a MouseListener on the TabFolder.

When I was on RedHat 4 , my code worked properly, but since i've changed to RedHat 5, my listener is never called.

My code :

public void createPartControl(Composite parent) {
       TabFolder tabs = new TabFolder(parent, SWT.NONE);
       tabs.addMouseListener(new MouseListener() {

           public void mouseDoubleClick(MouseEvent e) {
               // Nothing to do
           }

           public void mouseDown(MouseEvent e) {
               // Nothing to do
           }

           public void mouseUp(MouseEvent e) {
               fillTable();
               int i = tabs.getSelectionIndex();
               for (TabItem it : tabs.getItems()) {
                   it.setControl(null);
               }
               tabs.getItem(i).setControl(table);
           }
       });
       tabs.setVisible(false);
   }

Have you got an idea why the mouseUp method is never used (I've seen it in eclipse debug mode)?

Thanks in advance,
Nicolas_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



Back to the top