Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,208,035 members, 8,001,178 topics. Date: Wednesday, 13 November 2024 at 05:39 AM

Ole Clientsite - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Ole Clientsite (673 Views)

(2) (3) (4)

(1) (Reply)

Ole Clientsite by SirNetwork(m): 8:23pm On Jun 22, 2015
Pls i'm having an issue here. I embedded an OleClientSite in my application with a tree widget. I connected the OleClientSite and the tree widget with a menu event. While the OleClientSite could be displayed the tree widget could not. The code snippet is shown below. Pls anyone with experience could help me thanks.

Menu bar = new Menu(shell, SWT.BAR);
shell.setMenuBar(bar);
shell.setLayout(new FillLayout());
shell.setText("Testing"wink;
MenuItem fileItem1 = new MenuItem(bar, SWT.CASCADE);
fileItem1.setText("&File"wink;
Menu openHeader = new Menu (fileItem1);
fileItem1.setMenu(openHeader);
MenuItem openFile = new MenuItem(openHeader, SWT.CASCADE);
openFile.setText("Open Document"wink;
openFile.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
tree = new Tree (shell, SWT.BORDER);
TreeItem keyBloc = new TreeItem (tree, 0);
keyBloc.setText ("Testing"wink;
}
});
MenuItem documentsMenu = new MenuItem(bar, SWT.CASCADE);
documentsMenu.setText("&Documents"wink;
Menu documentsHeader = new Menu(documentsMenu);
documentsMenu.setMenu(documentsHeader);
MenuItem createDocuments = new MenuItem (documentsHeader, SWT.CASCADE);
createDocuments.setText("Create Document(s)"wink;
createDocuments.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
clientSite = new OleClientSite(frame, SWT.NONE, "Word.Document"wink;
clientSite.doVerb(OLE.OLEIVERB_INPLACEACTIVATE);
}
});

(1) (Reply)

How To Install Laravel on OS x / HOT! Latest Airtel 4gb Tweak Is Here AGAIN….. / Time Spent Online

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 6
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.