Jump to content


Photo

Indicator Column - Show a numeric field


  • Please log in to reply
5 replies to this topic

#1 Maik2

Maik2
  • Members
  • 18 posts

Posted 08 May 2026 - 12:28 PM

Hello,
 
I have a numeric field in my database query that determines the sorting order,
and I am looking for a way to display this numeric value directly next to the arrow in the indicator column (see photo).
What would be the easiest way to accomplish this?
 
Thanks and regards,
Maik

Attached Files



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 08 May 2026 - 01:14 PM

Hi Maik,

 

Unfortunately there is no yet an even for custom drawing indicator (maybe I shall add it). Maybe you can try with one fixed column without TField attached and then simply use custom drawing to draw sort order there?


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 Maik2

Maik2
  • Members
  • 18 posts

Posted 08 May 2026 - 01:36 PM

Hello Boki,
 
Thank you for your quick reply.
I will leave it as a standard visible column for now, and I hope that you might be able to add the option for custom character indicators in one of the upcoming versions.

Until then, best regards from Pirna.


#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 08 May 2026 - 02:20 PM

Maybe I can add this feature. It’s nice feature to have for others too.


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 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 09 May 2026 - 10:38 AM

Hi,

 

I have uploaded a new hot-fix with new event OnCustomDrawIndicator. You will probably need to re-compile packages to use it in design time.

 

I hope this event will help you. There are Selected and Index parameters and you also have a TRect of indicator cell.


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.

#6 Maik2

Maik2
  • Members
  • 18 posts

Posted 09 May 2026 - 07:50 PM

Hi Boki,
 
Thanks for the professional and speedy implementation.
I just downloaded and installed the hotfix.
 
However, when I change the `IndicatorWidth`, the indicator arrow is not drawn on the left side,
but rather in the center; consequently, no space remains to the right of it for custom information.
ow can I achieve left-aligned behavior?
 
In the example (see photos), I set `IndicatorWidth` to 36, resulting in the following outcome...
 
Thanks again for everything.
 
Best regards,
Maik

Attached Files






2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users