When I add a form to a tab panel, and then the tab panel to the window, the form elements do not render properly, specifically, the elements get shifted up into the tabs.
Can you please advise? Special Edition Using Lotus Notes and Domino 4.5 -- Ch 11 -- Designing :: Once in form design mode, you can show up to three different window panes. The options on the Hide tab, displaying a window shade icon as shown in Figure http://www.glib.hcmuns.edu.vn/ebook/computer/database/0-7897-0943-0/ch11/ch11.htmHOME | PRB: Error 406 Accessing an MTS Component in a Library Package:: When attempting to show a form from a Visual Basic client EXE after creating objects in a Microsoft Transaction Server (MTS) Library package, you may get the http://support.microsoft.com/kb/233997HOME |
Thanks!
Please see the example code attached:
public void onModuleLoad() {
Viewport viewport = new Viewport();
viewport.setLayout(new FlowLayout()); ErrHandler Help - Usage:: error details automatically, displaying error information, and returning it in a invoke a form-level method in order to make use of the forms Error event http://www.ideaxchg.com/ix07/er/erhlp004.htmHOME |
final Window popup = new Window();
popup.setLayout(new FlowLayout());
popup.setWidth(500);
Button button = new Button("Samples");
button.addSelectionListener(new SelectionListener() {
@Override
public void componentSelected(ComponentEvent ce) {
popup.show();
}
});
TabPanel tabs = new TabPanel();
TabItem tab1 = new TabItem();
tab1.setText("Tab 1");
tab1.setLayout(new FormLayout());
TabItem tab2 = new TabItem();
tab2.setText("Tab 2");
tab2.setLayout(new FormLayout());
TextField name = new TextField();
name.setFieldLabel("Name");
name.setValue("Christian");
tab1.add(name, new FormData());
tabs.add(tab1);
tabs.add(tab2);
popup.add(tabs);
Html moreDetail;
moreDetail = new Html("more detail ");
popup.getHeader().insertTool(moreDetail, 0);
moreDetail.sinkEvents(Events.OnClick);
moreDetail.addListener(Events.OnClick, new Listener() {
public void handleEvent(ComponentEvent be) {
DeferredCommand.addCommand(new Command() {
public void execute() {
MessageBox.alert("Click", "You clicked it!", null);
}
});
}
});
viewport.add(moreDetail);
RootPanel.get().add(button);
}
Nortel Unveils Vision, Strategy for Israeli High-Performance Net
Busy Friday Leads to Strong Close for Net Stocks
|