Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 7 of 7 total
Thread Variable-height rows for memo fields
Tue, Jul 25 2017 10:08 PMPermanent Link

Paul Coshott

Avatar

Hi All,

I found a reference to variable-height rows in a thread from 2015, and was wondering if there was anything available in the grid now?

I just want to display a memo field in a grid (using a ctMultiLineEdit control type) and would like it to change the row height to fit in the contents.

Also would be good to be able to specify a max height, if for example I only wanted to show the first 3 lines of each memo field - but not too important at the moment.

>>Honestly, I wouldn't try to do this right now and just wait until there is proper support for variable-height rows
>>in the grid controls.

Can this be done?

Cheers,
Paul
Wed, Jul 26 2017 4:12 AMPermanent Link

Uli Becker

Wed, Jul 26 2017 9:16 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Paul,

<< I found a reference to variable-height rows in a thread from 2015, and was wondering if there was anything available in the grid now? >>

No, nothing yet.

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Jul 26 2017 11:41 AMPermanent Link

Matthew Jones

Paul Coshott wrote:

> I just want to display a memo field in a grid (using a ctMultiLineEdit control type) and would like it to change the row height to fit in the contents.

Not in the supplied grid, but not too hard to make your own grid from embedded forms. If you have a lot of rows, you will need to virtualise them, but that's not too hard either.

--

Matthew Jones
Wed, Jul 26 2017 8:14 PMPermanent Link

Paul Coshott

Avatar

Hi Tim,

<< No, nothing yet. >>

Is there anything on the to-do list regarding this?

Cheers,
Paul
Thu, Jul 27 2017 10:35 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Paul,

<< Is there anything on the to-do list regarding this? >>

It's on the list, but the list is a stack of papers about 2 inches thick, so...

Right now I'm busy working on 2.07 and all of the back-end improvements, so it's going to be at least another month before I get back to dealing with UI/control improvements.

Tim Young
Elevate Software
www.elevatesoft.com
Sun, Oct 25 2020 8:17 PMPermanent Link

erickengelke

Avatar

Paul Coshott wrote:
>I found a reference to variable-height rows in a thread from 2015, and was wondering if there was anything >available in the grid now?

First, I'll say I love TGrids and use them a lot.

But I was frequently coming up with alternatives for Grid to give me more control, particularly for outputting lists and complex data,  so eventually I wrote my own grid control.  It works well with both datasets or as a two dimensional array which each Row and/or cell size can be individually controlled.

In its simplest form, you can just use it to display text, with changing background and foreground colours, adding hints, etc. and adding Cell click handlers to interprret user actions.

Or you can embed html including graphics or other controls including TEdits, Tbuttons, etc, you can even embed more TNiceSimpleGrids into cells of a TNiceSimpleGrid which can be used to further divide up cells into more grids.

It's part of my commercial Nice Controls toolkit, which comes with a perpetual license for $50 including new components as I write them.

>>Honestly, I wouldn't try to do this right now and just wait until there is proper support for variable-height rows
>>in the grid controls.

> Can this be done?

Have a look and see if you like it.  https://erickengelke.com/nice/samples.html

Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Image