Re: How to programmatically push a button?
Re: How to programmatically push a button?
- Subject: Re: How to programmatically push a button?
- From: Rich Cook <email@hidden>
- Date: Thu, 30 Sep 2004 10:14:02 -0700
On Sep 30, 2004, at 10:02 AM, Bryan Oakley wrote:
Rich Cook wrote:
Hello,
Does anyone know of a way from within a C program to tell a
pushbutton widget to activate itself, or more generically, to ask a
widget, given its name, to execute one of its actions, such as
"activate?" What I would like to do is provide a way to run my Motif
GUI from a scripting interface, for testing purposes.
I think that sending X Events such as a mouse down event is
problematic, as it means I have to find the widget's borders, but if
there is a way to query a widget for its borders, I ought to also be
able to activate that widget directly, I guess.
Thanks for any help.
You might want to take a look at android
http://www.wildopensource.com/activities/larry-projects/android.php
Thanks, that's one way to do some of this, but not quite what I'm
looking for. I realize I can send X Events such as mouse down, which
is what Android does, but I cannot rely on the windows being in the
same position each time. I need to be sure the button is pushed no
matter where the window is.
I can get most of the way there by calling the callback for the button
push, and that's probably what I'll end up doing.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden