Jump to content


Photo

Is there a way to show the selected row highlighting when the grid is not focused?


  • Please log in to reply
12 replies to this topic

#1 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 16 May 2017 - 08:22 PM

There's a color for it (InactiveSelectionColor), but it never gets used that I can tell. Is there a way to do this?

 

Thanks.



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 16 May 2017 - 08:31 PM

HideFocus maybe also is required to set to True?

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 16 May 2017 - 08:43 PM

HideFocus maybe also is required to set to True?

Best regards

 

Hmm not seeing that.

Grid.HideFocus

There is soHideSelection under SlidesOptions, but I don't see the other.



#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 16 May 2017 - 10:02 PM

My apology, yes in v5 is in AppearanceOptions -> aoHideFocus.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#5 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 16 May 2017 - 10:52 PM

My apology, yes in v5 is in AppearanceOptions -> aoHideFocus.

 

This hides the selection decoration altogether. I was envisioning something like the screenshot.

In this example, the bottom grid is focused.

 

http://imgur.com/19ujRB8.png

 

Edit: Closest I can get is to show the row indicator, which sort of works, since it shows even if the grid isn't focused. I'd prefer that the row stay highlighted too but with the InactiveSelectionColor, if possible.



#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 17 May 2017 - 04:49 PM

Hi,

Maybe aoHideSelection flag in same property?
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#7 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 18 May 2017 - 12:32 AM

Hi,

Maybe aoHideSelection flag in same property?

 

I tried that and it didn't work either. I guess it's not going to work.



#8 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 19 May 2017 - 08:20 AM

Hi,

If you can, you can send me dfm file and I can try to change properties and see what's missing?
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#9 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 19 May 2017 - 09:16 PM

Hi,

If you can, you can send me dfm file and I can try to change properties and see what's missing?

 

https://1drv.ms/u/s!...gf_EwGDzFLOcNw9



#10 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 19 May 2017 - 11:47 PM

Thank you,

I will look at it tomorrow.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#11 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 21 May 2017 - 04:36 PM

Hi,

Unfortunately, I wasn't be able to understand dfm you sent to me, so I created small demo project (attached).

If your set-up is different, maybe you can slightly change my form.

Attached Files


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#12 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 22 May 2017 - 04:29 PM

Hi,

Unfortunately, I wasn't be able to understand dfm you sent to me, so I created small demo project (attached).

If your set-up is different, maybe you can slightly change my form.

I was able to run your example in DXE8, and it works there. I'll try an example in D7, which is where my primary project needs to be compiled, to see if it works there.

 

Thanks.



#13 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 23 May 2017 - 05:49 PM

I was able to run your example in DXE8, and it works there. I'll try an example in D7, which is where my primary project needs to be compiled, to see if it works there.

 

Thanks.

Something about my project is causing the issue. In a stand-alone test project the highlighting is working.  Thanks for your help.

 

Now, I just need to try and figure out what's blocking the highlighting from happening.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users