Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ptp-dev] help with strange UI issue

I'm finishing up some modifications to the PBS Launch UI and I've run into a rather strange mouse event problem which I was wondering if anyone has had to deal with before.

It seems that the first mouse click on a newly constructed Launch Tab either freezes (on a push button), or gets misdirected to another view (usually the configuration tree to the left of the run configuration page, for instance, if I try to scroll), then spinning endlessly.  In the case of clicking the button, the button remains selected without doing anything, and a second click usually activates it.  Thereafter, everything is sane.

Thus this only happens on the first click; moreover, it only happens when I use the tab without having started the resource manager; it the resource manager is running, this never happens.  When you bring up the Launch Tab without having started the resource manager, a message box tells the user that the template view about to display may not be up to date.  But commenting out that code does not seem to change this peculiar behavior.

At first I thought I had not properly threaded a few of the processing actions that might be on the path of such a mouse click (though I don't see how simple scrolling would involve them...), but even with all the actions which could possibly take time threaded as separate UI jobs, the behavior remains the same.

Perhaps I need to find a way of separating out the activity in these threads from touching the widgets, and run them as normal Jobs rather than in the UI thread...?

At any rate, I was just wondering if anyone had encountered this situation before and knew of a quick (and proper) fix.

Thanks, Al


Back to the top