Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » May I make checkbox of table read_only?
May I make checkbox of table read_only? [message #459175] Wed, 03 August 2005 08:45 Go to next message
James Gan is currently offline James GanFriend
Messages: 27
Registered: July 2009
Junior Member
Hi,

I'm using the standard table of swt with SWT.CHECK style. But sometimes
I hope it's read_only to user.

Is there an API for this purpose?

Thanks a lot!

James Gan
Re: May I make checkbox of table read_only? [message #459206 is a reply to message #459175] Wed, 03 August 2005 12:04 Go to previous messageGo to next message
Roland Tepp is currently offline Roland TeppFriend
Messages: 336
Registered: July 2009
Senior Member
Not as such afaict...

You can however make it visually "disabled" by gray'ing it out and
resetting it's value in a listener whenever somebody tries to change
it's checked state.

James Gan kirjutas mulle ühel talvisel päeval midagi seesugust:
> Hi,
>
> I'm using the standard table of swt with SWT.CHECK style. But sometimes
> I hope it's read_only to user.
>
> Is there an API for this purpose?
>
> Thanks a lot!
>
> James Gan

--
Roland Tepp
Re: May I make checkbox of table read_only? [message #459247 is a reply to message #459206] Thu, 04 August 2005 11:58 Go to previous messageGo to next message
James Gan is currently offline James GanFriend
Messages: 27
Registered: July 2009
Junior Member
Thank you for the answer. Maybe I should disable the entitle table :)

Roland Tepp wrote:
> Not as such afaict...
>
> You can however make it visually "disabled" by gray'ing it out and
> resetting it's value in a listener whenever somebody tries to change
> it's checked state.
>
> James Gan kirjutas mulle ühel talvisel päeval midagi seesugust:
>
>> Hi,
>>
>> I'm using the standard table of swt with SWT.CHECK style. But
>> sometimes I hope it's read_only to user.
>>
>> Is there an API for this purpose?
>>
>> Thanks a lot!
>>
>> James Gan
>
>
Re: May I make checkbox of table read_only? [message #459302 is a reply to message #459247] Fri, 05 August 2005 07:38 Go to previous message
Stefan Langer is currently offline Stefan LangerFriend
Messages: 236
Registered: July 2009
Senior Member
James Gan wrote:
> Thank you for the answer. Maybe I should disable the entitle table :)
>
> Roland Tepp wrote:
>
>> Not as such afaict...
>>
>> You can however make it visually "disabled" by gray'ing it out and
>> resetting it's value in a listener whenever somebody tries to change
>> it's checked state.
>>
>> James Gan kirjutas mulle ühel talvisel päeval midagi seesugust:
>>
>>> Hi,
>>>
>>> I'm using the standard table of swt with SWT.CHECK style. But
>>> sometimes I hope it's read_only to user.
>>>
>>> Is there an API for this purpose?
>>>
>>> Thanks a lot!
>>>
>>> James Gan
>>
>>
>>
You could also use an image of a checked checkbox to display in the
column. That way no one is able to uncheck it.

HTH
Stefan
Previous Topic:SWT newbie question
Next Topic:Keyboard shortcuts disappeard ?
Goto Forum:
  


Current Time: Fri Oct 30 05:44:50 GMT 2020

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

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

Back to the top