Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Grids With Different Header Sizes (and AV)
Sun, Nov 8 2015 6:22 AMPermanent Link

squiffy

Telemix Ltd.

Avatar

Is there a way to programmatically change a grid's header size?

The default far too big for some of my controls that must exist on the same page as controls where the default is just fine (hence I don't want to change the interface for a system wide setting).

I tried

GridHeader1.Header.Height:=18;

but it doesn't complain nor change the setting. As TGridHeader is a descendent of TControl and Height is a property of that, should that not work?

---
As an aside - when I originally put in that height modifying line, I got this :
[Error] Project3.wbp (3,10): Access violation at address 0073FE14 in module 'ewbide.exe'. Read of address 00000000

but I've been unable to repeat it. Not much help, I know, but thought I'd mention it.
Mon, Nov 9 2015 5:32 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

<< Is there a way to programmatically change a grid's header size? >>

Not currently, no.  But I've added a ColumnHeadersHeight property to the TGrid control, and that will allow you to set it.

<< The default far too big for some of my controls that must exist on the same page as controls where the default is just fine (hence I don't want to change the interface for a system wide setting).

I tried

GridHeader1.Header.Height:=18; >>

That won't work.  There's a header bar container that the grid column headers stretch to fit into, and so that header bar height controls the height of the grid column headers.

<< As an aside - when I originally put in that height modifying line, I got this :
[Error] Project3.wbp (3,10): Access violation at address 0073FE14 in module 'ewbide.exe'. Read of address 00000000 >>

Yes, I've seen that one also, and yes, it won't be repeatable.  A re-compile will fix it.  I think I've figured out/fixed these random AVs in the IDE (there was a memory overwrite bug, hence the randomness):

http://www.elevatesoft.com/forums?action=view&category=ewb&id=ewb_general&msg=8217&page=1

and 2.02 B5 is coming out today with a fix.

Tim Young
Elevate Software
www.elevatesoft.com
Mon, Nov 9 2015 8:26 AMPermanent Link

squiffy

Telemix Ltd.

Avatar

Tim Young [Elevate Software] wrote:
>> Not currently, no.  But I've added a ColumnHeadersHeight property
>> to the TGrid control, and that will allow you to set it.

Much appreciated, ta. Will that be in the next build?
Mon, Nov 9 2015 11:54 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Image