Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,224,259 members, 8,059,076 topics. Date: Wednesday, 22 January 2025 at 06:33 AM |
Nairaland Forum / Science/Technology / Programming / Ole Clientsite (678 Views)
(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" MenuItem fileItem1 = new MenuItem(bar, SWT.CASCADE); fileItem1.setText("&File" Menu openHeader = new Menu (fileItem1); fileItem1.setMenu(openHeader); MenuItem openFile = new MenuItem(openHeader, SWT.CASCADE); openFile.setText("Open Document" 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" } }); MenuItem documentsMenu = new MenuItem(bar, SWT.CASCADE); documentsMenu.setText("&Documents" Menu documentsHeader = new Menu(documentsMenu); documentsMenu.setMenu(documentsHeader); MenuItem createDocuments = new MenuItem (documentsHeader, SWT.CASCADE); createDocuments.setText("Create Document(s)" createDocuments.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { clientSite = new OleClientSite(frame, SWT.NONE, "Word.Document" clientSite.doVerb(OLE.OLEIVERB_INPLACEACTIVATE); } }); |
(1) (Reply)
Help Help Help / Quick One / Legit Gift Card Dealer
(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 - 2025 Oluwaseun Osewa. All rights reserved. See How To Advertise. 11 |