Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How I can do click in a swt button by code?
How I can do click in a swt button by code? [message #447657] Thu, 16 December 2004 08:15 Go to next message
David is currently offline DavidFriend
Messages: 30
Registered: July 2009
Member
Hi!

I've an swt button.
I need do click in this button by code but I don't
find any method as:

myButtton.click()

in swt.

How I can do this?

Many Thanks!
Re: How I can do click in a swt button by code? [message #447661 is a reply to message #447657] Thu, 16 December 2004 09:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: guillaume_godetbar.nospam.nospam.hotmail.com

Hi David,
I suppose i'd directly call the listener method of the button
(widgetSelected for example).

Guillaume Godet-Bar


David Díaz wrote:

> Hi!
>
> I've an swt button.
> I need do click in this button by code but I don't
> find any method as:
>
> myButtton.click()
>
> in swt.
>
> How I can do this?
>
> Many Thanks!
>
>
>
How I can do this? [message #447753 is a reply to message #447661] Fri, 17 December 2004 11:33 Go to previous messageGo to next message
David is currently offline DavidFriend
Messages: 30
Registered: July 2009
Member
Hello!

Can you help me and write a short examble about do this?

Many thanks!




Guillaume Godet-Bar wrote:

> Hi David,
> I suppose i'd directly call the listener method of the button
> (widgetSelected for example).

> Guillaume Godet-Bar


> David Díaz wrote:

>> Hi!
>>
>> I've an swt button.
>> I need do click in this button by code but I don't
>> find any method as:
>>
>> myButtton.click()
>>
>> in swt.
>>
>> How I can do this?
>>
>> Many Thanks!
>>
>>
>>
Re: How I can do click in a swt button by code? [message #447761 is a reply to message #447657] Fri, 17 December 2004 20:08 Go to previous message
Markus Kuhn is currently offline Markus KuhnFriend
Messages: 3
Registered: July 2009
Junior Member
Have a look at abbot.swt:
http://sourceforge.net/projects/abbot/
For SWT you have to take the version 12.4.
There is an example included in the download.

With abbot.swt there are still problems with clicking on menus, which
are hopfully solved soon.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=38436


David Díaz wrote:
> Hi!
>
> I've an swt button.
> I need do click in this button by code but I don't
> find any method as:
>
> myButtton.click()
>
> in swt.
>
> How I can do this?
>
> Many Thanks!
>
>
>
Previous Topic:Checkbox is not centering
Next Topic:Any for SWT UI design?
Goto Forum:
  


Current Time: Thu Apr 25 14:21:20 GMT 2024

Powered by FUDForum. Page generated in 0.03457 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top