I don't think this is useful in general. The window manager should 
replace the popup manager. Windows should not use the popup manager.

Maybe you can, if you really need such a feature, modify this locally.

Sebastian


dperez schrieb:
> Hi,
> 
> This is Popup._beforeAppear():
> 
> qx.Proto._beforeAppear = function()
> {
>   qx.ui.layout.CanvasLayout.prototype._beforeAppear.call(this);
> 
>   qx.manager.object.PopupManager.getInstance().add(this);
>   qx.manager.object.PopupManager.getInstance().update(this);
> 
>   this._showTimeStamp = (new Date).valueOf();
>   this.bringToFront();
> }
> 
> and this its Window version:
> 
> qx.Proto._beforeAppear = function()
> {
>   // Intentionally bypass superclass and call super.super._beforeAppear
>   qx.ui.layout.CanvasLayout.prototype._beforeAppear.call(this);
> 
>   // Hide popups
>   qx.manager.object.PopupManager.getInstance().update();
> 
>   // Configure the focus root to be the current opened window
>   qx.event.handler.EventHandler.getInstance().setFocusRoot(this);
> 
>   this.getWindowManager().add(this);
>   this._makeActive();
> }
> 
> Clearly, qx.manager.object.PopupManager.getInstance().add(this) is missing
> for Windows.
> Should I add it again?
> 
> -------------------------
> 
> Another issue very related with this problem:
> 
> In qx.ui.form.ComboBox, all the mouse processing was done in the ComboBox
> class (not using the built-in List mouse handling).
> As Table is more complicated than List, I decided to let the Table handle
> itself the mouse.
> I don't capture the events, instead I play with autoHide.
> 
> qx.Proto._openPopup = function() {
>   ....
>   p.setAutoHide(false);
>   ....
>   window.setInterval(function() {
>     p.setAutoHide(true);
>   }, 0);
> }
> 
> This works ok, except when the combo is inside a window.
> In that case, the popup table doesn't receive any mouse events.
> It is due to Z-index ordering or the window capturing the events?
> 
> 
> 
> Sebastian Werner wrote:
>> This property is inherited from Popup but currently is not used by the 
>> Window class. Maybe you can reuse this property.
>>
> 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to