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
Adjust column width/High CPU usage/High DPI support
Re: Adjust column width/High CPU usage/High DPI support
Hello Ronald,
Sorry for the delay with this reply.
Re. "property to adjust column width to field content"
You can do it this way:
I'll follow up with the other answers.
Regards,
Marc Meumann
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;
Regards,
Marc Meumann
Steema Support
Re: Adjust column width/High CPU usage/High DPI support
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. "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
Hi Marc,
Thanks for your reply. Regarding MouseMove/CPU: when is the next release expected?
Regards, Ronald
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
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
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
Re: Adjust column width/High CPU usage/High DPI support
Hello Ronald,
To keep you informed. We're near to version release, some points still to finalise.
Regards,
Marc
To keep you informed. We're near to version release, some points still to finalise.
Regards,
Marc
Steema Support
Re: Adjust column width/High CPU usage/High DPI support
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
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