[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]
Single Page
Top Document: comp.windows.x.intrinsics Frequently Asked Questions (FAQ)
Previous Document: 43. How do I query the user synchronously using Xt?
Next Document: 45. How to use Fallback resources (can I specify colors)?
-
Search the FAQ Archives
Single Page
Top Document: comp.windows.x.intrinsics Frequently Asked Questions (FAQ)
Previous Document: 43. How do I query the user synchronously using Xt?
Next Document: 45. How to use Fallback resources (can I specify colors)?
44. How do I simulate a button press/release event for a widget?
---------------------------------------------------------------------- You can do this using XSendEvent(); it's likely that you're not setting the window field in the event, which Xt needs in order to match to the widget which should receive the event. If you're sending events to your own application, then you can use XtDispatchEvent() instead. This is more efficient than XSendEvent() in that you avoid a round-trip to the server. Depending on how well the widget was written, you may be able to call its action procedures in order to get the effects you want. [courtesy Mark A. Horstman (mh2620@sarek.sbc.com), 11/90]
Top Document: comp.windows.x.intrinsics Frequently Asked Questions (FAQ)
Previous Document: 43. How do I query the user synchronously using Xt?
Next Document: 45. How to use Fallback resources (can I specify colors)?
Single Page
[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]
Send corrections/additions to the FAQ Maintainer:
ware@cis.ohio-state.edu
Last Update July 24 2008 @ 00:12 AM