On Fri, Mar 26, 2004 at 12:58:18PM -0800, Raghu Ram Murthy wrote: > Hello, > > I am writing new application manager for our needs. > In this for first requested application I am creating > BOX widget and a toolbar(like taskbar in kde) at the > bottom.
First of all, why are you writing a new app manager? It looks to me like what you want can be done just by using normal apps along with a toolbar app, like PGL. > > whenever new application request comes, I am creating > new div tree and placing that application in that > divtree. As it occupies entire screen and toolbar > won't be visible, I am attaching that toolbar to > current divtree. Now everything looks fine. Why are you creating a new divtree? The divtree stack is for representing completely separate layers of widgets that are conceptually stacked above each other. They're used to implement popup widgets. Attaching one widget in multiple divtrees is probably a bad idea. > > For new application requests, I am creating PANEL > widget and deriving after toolbar widget in the same > divtree. > > Now the problem is newly created PANEL is not visible, > until the window (X Window) is resized or maximized. > What might be the problem. What should I do? > > What are the procedures that will be called if > pgserver window is resized or maximized? So that i too > call those procedures to make it work. It sounds like either your panel isn't attached in the divtree like you expect it is, or the default size isn't what you want. Note that a panel widget with the 'size' property set to 0 will be completely hidden. Normally when you drag a panelbar to resize it, you can't set the size smaller than the width of the bar. There isn't really a procedure that gets called to resize a widget. The size property is set, that sets flags that indicate what needs recalculating and redrawing, then on the next update they take effect. I'd suggest rethinking your design. I haven't seen any reason for what you're doing to require a new app manager. It would help if you explain the problem you're trying to solve. --Micah -- Only you can prevent creeping featurism! ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Pgui-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/pgui-devel
