[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform.swt] Re: Default behaviour when selecting a row in a disabled table
|
Hi Conor,
It does whatever the platform default behaviour is. For example, on win2000
the selection is not visible in this case because the table's disabled gray
colour matches the gray color of a selected item in an unfocused table (and
a disabled table can never have focus). However on my gtk install I can see
the selection in a disabled table because the table's background is not
filled in with gray.
Grant
"Conor O'Mahony" <C.O'Mahony@xxxxxxx> wrote in message
news:ekp94n$8bh$1@xxxxxxxxxxxxxxxxxxxx
> The table is being used in a dialog, and there are some radio buttons
> that determine whether the user can or cannot select items on the table.
> Therefore when a certain radio button is selected, i want the table to
> be disabled, but i also want to show what row is selected in the table
>
>
> Tom Schindl wrote:
> > Hi,
> >
> > I have no answer but why do you disable the whole table?
> >
> > Tom
> >
> > Conor O'Mahony schrieb:
> >> Hi,
> >>
> >> Apologies if this is a simple question, but I was wondering if someone
> >> could tell me what the default behaviour is when you set a selection on
> >> a table that is disabled.
> >>
> >> i.e.
> >>
> >> table.setEnabled(false);
> >> table.setSelection(1);
> >>
> >> Should the row be highlighted on the disabled table or will all the
> >> table still be greyed out? The reason I'm asking is because I'm trying
> >> to highlight a row on a table that is not enabled.