Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 7 of 7 total
Thread How to keep the focus bg color of a grid
Thu, Aug 15 2013 10:27 AMPermanent Link

Uli Becker

I couldn't find a way to modify a theme so that the focused background
color of a row keeps its color when the cursor is above this row.

Clip1 shows the focused row and the "hot" row.
Clip2 shows the focused row with the cursor above (focused = hot)

What I want is

either: no hot background color at all
or: keep the focused background color when the cursor is above the
focused row.

Is that possible?

P.S. What I don't want is a hot background color with the same color as
the focused background color.

Thanks Uli



Attachments: Clip1.png Clip2.png
Mon, Aug 19 2013 1:25 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< I couldn't find a way to modify a theme so that the focused background
color of a row keeps its color when the cursor is above this row. >>

You can't - I've been going back-and-forth on this several times now, and
the last framework change was done to make "hot" override "focused" (before
it was the opposite).  I'm just going to have to put this down to "can't
please everyone". Smile

If you want to change this yourself, this is the method (WebCtrls):

function TGridColumn.GetCellThemeSuffix(RowIndex: Integer; Over: Boolean):
String;
begin
  if Over then
     Result:='hot'
  else if CellIsFocused(RowIndex) then
     Result:='fcs'
  else if FEnabled then
     Result:='nrm'
  else
     Result:='dsb';
end;

If you have any other questions, please let me know.

Tim Young
Elevate Software
www.elevatesoft.com

Mon, Aug 19 2013 1:35 PMPermanent Link

Uli Becker

Tim,

> You can't - I've been going back-and-forth on this several times now,
> and the last framework change was done to make "hot" override "focused"
> (before it was the opposite).  I'm just going to have to put this down
> to "can't please everyone". Smile

OK, thanks for the clarification.
How about a property "AlwaysShowFocus"? That would nicely fit between
"AlwaysShowEditor" and "AlwaysShowSelection". Smile

I'd really appreciate such a property.

Thanks anyway for the code to workaround that.

Regards Uli
Fri, Aug 23 2013 8:58 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< How about a property "AlwaysShowFocus"? That would nicely fit between
"AlwaysShowEditor" and "AlwaysShowSelection". Smile>>

I'll see what I can do.  I have to really start being careful about code
size - the framework is starting to get rather large, and there's still
quite a few controls that need to be implemented.

Tim Young
Elevate Software
www.elevatesoft.com
Sat, Aug 24 2013 4:23 AMPermanent Link

Uli Becker

Tim,

> I'll see what I can do.  I have to really start being careful about code
> size - the framework is starting to get rather large, and there's still
> quite a few controls that need to be implemented.

OK, thanks.

Sorry to insist: but I checked out a couple of grids in applications and
websites - the focus background color should always overwrite the hover
color. That seems to be the standard behaviour and it makes sense,
always to see the selection.

(Just using Thunderbird - same behaviour there).

Regards Uli

Mon, Aug 26 2013 11:37 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< Sorry to insist: but I checked out a couple of grids in applications and
websites - the focus background color should always overwrite the hover
color. That seems to be the standard behaviour and it makes sense, always to
see the selection. >>

Grids are not "standard".  Are you referring to listviews under Windows ?
They have a "focused and selected" state, and that is probably what is
needed for EWB also.

Tim Young
Elevate Software
www.elevatesoft.com
Mon, Aug 26 2013 12:27 PMPermanent Link

Uli Becker

Tim,

> Grids are not "standard".  Are you referring to listviews under Windows
> ? They have a "focused and selected" state, and that is probably what is
> needed for EWB also.

Either grid or listviews: I just wanted to say that it seems to be a
"standard behaviour" to always display the selection.

Uli
Image