Hello,
Does anyone know how to specify a SingleCDockable in a CGrid stacked with other SingleCDockables , to display on top but without grabbing the focus. DF current default behavior when adding dockables in the same stack group, is to display on top the last added dockable to the stack. I would like to make the first dockable that was added earlier to this stack to display on top instead of the one added last. While calling toFront() on a dockable displays it on top of the stack, unfortunately it also grabs the focus which in my specific two cases is undesirable.
Case 1: adding SingleCDockable dockables in a CGrid:
myCGrid.add(0, 0, 6, 10, homeSingleCDockable);
myCGrid.add(0, 0, 6, 10, welcomeSingleCDockable); //By default, welcomeSingleCDockable (being the last one to be added) displays on top of the stack when the CGrid is rendered initially. How can homeSingleCDockable be made to display on top instead?
Calling homeSingleCDockable.toFront() works great, but grabs the focus at the same time which is not desirable for this case.
Case 2: adding SingleCDockablePerspective dockables in a CGridPerspective:
myGridPerspective.gridAdd(0,0,6,10, homeDockPerspective);
myGridPerspective.gridAdd(0,0,6,10, welcomeDockPerspective); //By default, welcomeDockPerspective displays on top of the stack when the GridPerspective is called each time.
Please note that for some reason, toFront() did not work for me here. After loading the perspective (via load()), calling toFront() like so – ((AbstractCDockable) ((DefaultCommonDockable) dockFrontendIn.getDockable(“single homeDockID”)).getDockable()).toFront()) – still left the welcomeDockPerspective displaying on top. Is there a way to force homeDockPerspective to display on top instead?
I would appreciate any ideas. Thanks.