On Wed, Feb 15, 2012 at 15:41, Scott Chapman <[email protected]> wrote:
> The context may help on this a bit. I have a table that when clicked
> on a row, causes a tab to be opened. There's enough stuff in the tab
> that it takes a while to open up and show. I want some visual
> indicator to the user that I did get his click event and I'm working
> on it. So I thought of changing the mouse pointer to the spinning
> wheel and when the tab opens up, turn it back to default.
>
> The click occurs over the row in the table so changing the cursor has
> no visible effect because the table is overriding the cursor value set
> on the root container.
>
> I thought of making the tab appear immediately then get populated as
> another means of dealing with the problem but don't know how to do
> that.
Ok. First of all, just setting the cursor to a new value doesn't actually
get it to change immediately. It doesn't change until control returns to
the JavaScript engine,so if you set the cursor and immediately go about the
process of creating all of your widgets, the cursor won't change regardless
of what other widgets the mouse is over (or not over) that have explicit
mouseover cursors. Are you sure that this, alone isn't your problem?
The answer to that, which is also your alternate solution that you
described, is to set the wait cursor and then use a timer to call a
function that populates your tab. You'd do that something like:
// Change to the progress cursor
qx.core.init.getApplication().getRoot().setGlobalCursor("progress");
// Get the timer singleton
var timer = qx.util.TimerManager.getInstance();
// Start a timer to populate the tab in a short while
timer.start(
function(userData, timerId)
{
//
// fill your form here
//
;
// Reset the cursor
qx.core.init.getApplication().getRoot().resetGlobalCursor();
},
0, // no recurrence of this timer
this, // context that somehow gives access to your form container
null, // user data passed to the function
100); // 100ms is enough to let JavaScript set the cursor
Maybe that helps.
Derrell
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel