Adjust column width/High CPU usage/High DPI support

TeeGrid VCL / FMX for Embarcadero RAD Studio, Delphi, C++ Builder and Lazarus Free Pascal.
Post Reply
Ronald
Newbie
Newbie
Posts: 3
Joined: Fri Feb 17, 2017 12:00 am

Adjust column width/High CPU usage/High DPI support

Post by Ronald » Wed Apr 03, 2019 7:55 am

Hello,

As a new user, I have some questions regarding the way TeeGrid is intended to work:

1. Is there a property to adjust column width to field content? In Postgres, most fields are created as varchar without length specifier, which causes columns in grid to be come very wide.
2. How can I retrieve the number of visible rows?
3. How can I enable drawing using VCL Styles? I would expect the headers to be like TDbGrid then.
4. Application uses a lot of CPU when moving the mouse over the TeeGrid, which is even worse in case DoubleBuffered property is set to false. This makes me think that every mousemove generates a full repaint, is that correct, and if so, can that be switched off?
5. Is the grid high-dpi aware? I think not, as I would expect Rows.Height, when set in pixels, to adjusted for high dpi, or am I doing something wrong?
6. I noticed that the indicator column header is not painted as the other column headers. Is there a way to have indicator header style same as other column headers?

Best regards,

Ronald

Marc
Site Admin
Site Admin
Posts: 925
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Adjust column width/High CPU usage/High DPI support

Post by Marc » Thu Apr 11, 2019 7:39 am

Hello Ronald,

Sorry for the delay with this reply.

Re. "property to adjust column width to field content"

You can do it this way:

Code: Select all

TeeGrid1.Columns.Items[yourIDX].Width.Value := 400;
I'll follow up with the other answers.

Regards,
Marc Meumann
Steema Support

Marc
Site Admin
Site Admin
Posts: 925
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Adjust column width/High CPU usage/High DPI support

Post by Marc » Thu Apr 11, 2019 12:00 pm

Hello Ronald,

Re. "2. How can I retrieve the number of visible rows?"
Just checking for this. Will get back to this thread.

Re. "3. How can I enable drawing using VCL Styles? I would expect the headers to be like TDbGrid then."
TeeGrid has its own theme styles, see the demo under the "demos\VCL\Themes" folder. The default theme is closest to standard DBGrid though it doesn't attempt to mimic it.

Re. "4. Mousemove CPU"
This has been assigned a feature request id. http://bugs.teechart.net/show_bug.cgi?id=2181. A new property, Grid.MouseActivity, has been added to be included with the next update.

Will get back to this thread on other points.

Regards,
Marc

Ronald
Newbie
Newbie
Posts: 3
Joined: Fri Feb 17, 2017 12:00 am

Re: Adjust column width/High CPU usage/High DPI support

Post by Ronald » Mon Apr 15, 2019 8:06 am

Hi Marc,

Thanks for your reply. Regarding MouseMove/CPU: when is the next release expected?

Regards, Ronald

Marc
Site Admin
Site Admin
Posts: 925
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Adjust column width/High CPU usage/High DPI support

Post by Marc » Thu Apr 18, 2019 1:47 pm

Hello Ronald,

There are a few more items we have pending to test plus checks on the other outstanding points in this thread and we expect to get to a new release at the end of April.

Regards,
Marc
Steema Support

Marc
Site Admin
Site Admin
Posts: 925
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Adjust column width/High CPU usage/High DPI support

Post by Marc » Fri May 03, 2019 10:29 am

Hello Ronald,

To keep you informed. We're near to version release, some points still to finalise.

Regards,
Marc
Steema Support

Marc
Site Admin
Site Admin
Posts: 925
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Adjust column width/High CPU usage/High DPI support

Post by Marc » Fri May 10, 2019 8:11 am

Hello Ronald,

Just to let you know there's a new update available. Apologies for the delay.

info:
https://www.steema.com/version_info/gridvcl/last

Access to download page:
https://www.steema.com/login

Regards,
Marc
Steema Support

Post Reply