Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread Grid row height and vertical scrollbar problem
Sun, Sep 23 2018 6:34 AMPermanent Link

Kenneth

Avatar

I have a grid (Height is 192) with picture column(ctimage) and three others columns( 2*ctEdit and one ctCheckBox). Grid is unbound so I append rows with a button. When I add for example 8 rows I see normally vertical scrollbar and grid work as expected. You can see every 8 rows of data using vertical scrollbar.

But I want the picture columns cell height (and all others) to be 80 so that hole picture shows better.
To get this done I use TGidCell class Height property on OnCellUpdate-event. No other changes.

The problem is that when cell height is 80 grid has also vertical scrollbar but it does not scroll all rows. It scrolls just 6. The others are there you can see them if you append empty rows. Seems to me that grids scrollbar/grid does not notice that cell height is actually 80 now?
Kenneth
Mon, Sep 24 2018 12:29 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Kenneth,

<< I have a grid (Height is 192) with picture column(ctimage) and three others columns( 2*ctEdit and one ctCheckBox). Grid is unbound so I append rows with a button. When I add for example 8 rows I see normally vertical scrollbar and grid work as expected. You can see every 8 rows of data using vertical scrollbar.

But I want the picture columns cell height (and all others) to be 80 so that hole picture shows better.
To get this done I use TGidCell class Height property on OnCellUpdate-event. No other changes. >>

You can't adjust the height of the cells in the OnCellUpdate event.  The grid just isn't capable of variable-height rows at this time.

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Sep 25 2018 11:30 AMPermanent Link

Kenneth

Avatar

Ok Thanks. I did read it from some older post but because after changing the row height to 80 the visual look of grid was as expected I thought it is possibly. However how grid handles images is in good shape. If you could change the height it would be perfect. Anyway thanks for software which makes me smile when I use it.
Kenneth
Tue, Sep 25 2018 11:52 AMPermanent Link

Kenneth

Avatar

Last time I did use grid to make a supercombo. (Sorry for the quality of images. They shoud be images but I did use just my test images…)

Test version is hereSmile    https://imgur.com/2aZ0lf0
Kenneth
Thu, Sep 27 2018 11:52 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Kenneth,

<< Last time I did use grid to make a supercombo. (Sorry for the quality of images. They shoud be images but I did use just my test images…)

Test version is hereSmile    https://imgur.com/2aZ0lf0  >>

Nice, that looks really cool. Smile

After the initial EWB 3 is out, one of the first things I will be doing is adding better composition to the visual controls in the component library so that you can nest various controls in lists, etc. without much effort, and that should make creating composite controls like this much, much easier.

Tim Young
Elevate Software
www.elevatesoft.com
Image