Page 1 of 1

Adjust column width/High CPU usage/High DPI support

Posted: Wed Apr 03, 2019 7:55 am
by 18680126
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

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

Posted: Thu Apr 11, 2019 7:39 am
by Marc
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

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

Posted: Thu Apr 11, 2019 12:00 pm
by Marc
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

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

Posted: Mon Apr 15, 2019 8:06 am
by 18680126
Hi Marc,

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

Regards, Ronald

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

Posted: Thu Apr 18, 2019 1:47 pm
by Marc
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

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

Posted: Fri May 03, 2019 10:29 am
by Marc
Hello Ronald,

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

Regards,
Marc

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

Posted: Fri May 10, 2019 8:11 am
by Marc
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