Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to change a Dialog button into depressed form
How to change a Dialog button into depressed form [message #110130] Mon, 11 August 2003 23:33 Go to next message
Eclipse UserFriend
hi all,

I like to know how can I change a button(just like the one on
messageDialog) to a depressed after it has been pressed once by the user
ans it can't be pressed again until and unless it comes out of its
depressed form.

I would apprecaite your help.

Syed
Re: How to change a Dialog button into depressed form [message #110442 is a reply to message #110130] Tue, 12 August 2003 10:49 Go to previous messageGo to next message
Eclipse UserFriend
You could try using a toggle button (a Button with style constant
SWT.TOGGLE), and then disabling (setEnabled(false)) it when you don't want
the user to change its state.. although it might not look quite like what
you're looking for.

Curt

"Syed Rizvi" <sma_r@hotmail.com> wrote in message
news:bh9n6v$37n$1@eclipse.org...
> hi all,
>
> I like to know how can I change a button(just like the one on
> messageDialog) to a depressed after it has been pressed once by the user
> ans it can't be pressed again until and unless it comes out of its
> depressed form.
>
> I would apprecaite your help.
>
> Syed
>
Re: How to change a Dialog button into depressed form [message #110614 is a reply to message #110442] Tue, 12 August 2003 19:44 Go to previous messageGo to next message
Eclipse UserFriend
thanks for the idea but I am looking for something like when one is
installing a software you can't click on next until and unless the
regulation and copyright thing is Accepted.I hope this makes it clear/

thanks

Syed

Curtis d'Entremont wrote:

> You could try using a toggle button (a Button with style constant
> SWT.TOGGLE), and then disabling (setEnabled(false)) it when you don't want
> the user to change its state.. although it might not look quite like what
> you're looking for.

> Curt

> "Syed Rizvi" <sma_r@hotmail.com> wrote in message
> news:bh9n6v$37n$1@eclipse.org...
> > hi all,
> >
> > I like to know how can I change a button(just like the one on
> > messageDialog) to a depressed after it has been pressed once by the user
> > ans it can't be pressed again until and unless it comes out of its
> > depressed form.
> >
> > I would apprecaite your help.
> >
> > Syed
> >
Re: How to change a Dialog button into depressed form [message #110713 is a reply to message #110614] Wed, 13 August 2003 02:16 Go to previous message
Eclipse UserFriend
Hi Syed,

the behaviour you described sounds for me like the disabling Curtis said:
button.setEnabled(false);

and when copyright is accepted:
button.setEnabled(true);

Ralf

Syed Rizvi schrieb:
> thanks for the idea but I am looking for something like when one is
> installing a software you can't click on next until and unless the
> regulation and copyright thing is Accepted.I hope this makes it clear/
>
> thanks
>
> Syed
>
> Curtis d'Entremont wrote:
>
>
>>You could try using a toggle button (a Button with style constant
>>SWT.TOGGLE), and then disabling (setEnabled(false)) it when you don't want
>>the user to change its state.. although it might not look quite like what
>>you're looking for.
>
>
>>Curt
>
>
>>"Syed Rizvi" <sma_r@hotmail.com> wrote in message
>>news:bh9n6v$37n$1@eclipse.org...
>>
>>>hi all,
>>>
>>>I like to know how can I change a button(just like the one on
>>>messageDialog) to a depressed after it has been pressed once by the user
>>>ans it can't be pressed again until and unless it comes out of its
>>>depressed form.
>>>
>>>I would apprecaite your help.
>>>
>>>Syed
>>>
>
>
>
Previous Topic:Enable a "Stacktrace"
Next Topic:Missing "New Java files" in Code generation
Goto Forum:
  


Current Time: Sun May 11 01:41:13 EDT 2025

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

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

Back to the top