PDA

View Full Version : ToolBar alignment HTML component



sz_146
24 May 2010, 2:12 AM
I am using a Top ToolBar in my application where I have a Logout Button which is right aligned. Later on, I need to insert a message (as HTML component) just before the Logout Button (still right aligned) and I use the ToolBar.insert function for that but it aligns the Button on the right while keeps the message on the far left hand side of the toolbar. How do I get the message to appear just before the Logout Button on the right. Here is how my code looks like currently:



ToolBar tb = new ToolBar();
LogoutBtn logoutBtn = LogoutBtn.getInstance();
tb.add(logoutBtn);
HTML html = new HTML("<p>Some message</p>");
tb.insert(html, 0);