on 01-09-2008 2:03 PM
Hi,
I want to create toolbar and toolbarbutton i tried this lots of ways but couldn't get through it. so plz help me.
I've taken group and i wanted to add in the group. I've written the following code but it's not working at all.
IWDToolBar Tbar = (IWDToolBar)
view.createElement(IWDToolBar.class,"tbhead");
IWDToolBarButton theToolButton = (IWDToolBarButton)
view.createElement(IWDToolBarButton.class,"toolbutton");
Tbar.addToolBarItem(theToolButton);
tablegroup.addChild(Tbar);//IN THIS SENTENCE IT'S NOT ALLOWING ME TO ADD CHILD OF GROP.
Hi Amit,
Toolbar is to be set to Table.
table.setToolBar(Tbar);
//table is instance of the table which is created like the following
//IWDTable table = //(IWDTable)view.createElement(IWDTable.class,"Table1");
regards,
siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
IWDGroup group = ...;
IWDToolBar toolbar = (IWDToolbar) view.createElement(IWDToolBar.class, null);
/* add items etc. */
group.setToolBar(tolobar);
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.