Google 网上论坛不再支持新的 Usenet 帖子或订阅项。历史内容仍可供查看。

Turn off focus to a dialog window

已查看 24 次
跳至第一个未读帖子

bcf...@aol.com

未读,
2014年5月1日 14:42:162014/5/1
收件人
I hope this group is not totally dead.

Is there a way to turn off the focus to a dialog window when it is created? When the dialog comes up, I want it displayed, but do not want it to be the window in focus. Possibly something with "unmanageChild"?

Fred K

未读,
2014年5月2日 10:50:362014/5/2
收件人
On Thursday, May 1, 2014 11:42:16 AM UTC-7, bcf...@aol.com wrote:
> I hope this group is not totally dead. Is there a way to turn off the focus to a dialog window when it is created? When the dialog comes up, I want it displayed, but do not want it to be the window in focus. Possibly something with "unmanageChild"?

Before managing the dialog, call XmGetFocusWidget to find the current focus widget.
Add a ConfigureNotify event handler to the dialog.
In the event handler, remove the event handler, then call XmProcessTraversal to send the focus back to the original focus widget.

bcf...@aol.com

未读,
2014年5月2日 13:04:482014/5/2
收件人
I will give that a shot. Thanks much.
0 个新帖子