How to change tab widget in TabPanel?

2008-12-09 Thread dhoffer
How can I modify the tab widget in a TabPanel? I don't see any set methods for Widgets or tab Widgets. Do I have to remove the existing Widget just to re-add the same Widget with a different tab widget? What kind of screen flash/update will this cause? This seems like a major oversight in the

Re: How to change tab widget in TabPanel?

2008-12-09 Thread David Hoffer
It looks like I might be able to change the tab via setTabHTML on the TabBar. There is no way to get and modify the same component that was placed in the tab bar but I might be able to set its HTML to the same effect. -Dave On Tue, Dec 9, 2008 at 8:44 AM, dhoffer [EMAIL PROTECTED] wrote: How

Re: How to change tab widget in TabPanel?

2008-12-09 Thread gregor
Hi David, You cannot easily get at the widget you used for a tab header. TabBar.getTabHTML() doesn't work if you loaded a widget into a tab header. I am not sure why this is, i.e. why this is so difficult in the case of TabPanel. A solution is to accept that if you need more than CSS to drive

Re: How to change tab widget in TabPanel?

2008-12-09 Thread David Hoffer
Yeah, extending TabPanel seems like a good way to go as I have dynamic tab content. -Dave On Tue, Dec 9, 2008 at 1:43 PM, gregor [EMAIL PROTECTED] wrote: Hi David, You cannot easily get at the widget you used for a tab header. TabBar.getTabHTML() doesn't work if you loaded a widget into a