On Thu, 25 Jul 2002, Juan Jos� Andr�s Guti�rrez wrote:
> Hello,
>
> I need to make a function that presses a button of an application
> from its name.
>
> For example an application has the buttons "ok" and "cancel". I
> need, from my function, it sends the press event to one of the buttons
> from its name, SendButton (display, name_button).
>
> I don't know how X-window manage buttons, I suppose like a window,
> but I don't know how I can press a button from its name.
>
> I use XSendEvent but I don't know how to locate the correct button.
>
> Somebody can give me any idea?
>
X doesn't manage buttons. A button is just a window and the server
itself has no knowledge of what specific purpose a window is used for.
If your application wants to press one of its buttons that's an issue
with the widget set/toolkit that you are using to draw and maintain
those buttons.
MArk.
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert