Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread TIconButton grid column
Tue, Apr 25 2017 9:23 AMPermanent Link

thomh

Hi Tim,

Any chance of getting a ControlType = ctIconButton in the near future?

Thanks.

// Thom
Tue, Apr 25 2017 10:35 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Thom,

<< Any chance of getting a ControlType = ctIconButton in the near future? >>

Let me verify what your needs are here.  Do you want the "depress" action, or are you just looking for an icon that you can click ?  If the latter, then you can do that with the ctIcon control type now.

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Apr 25 2017 12:05 PMPermanent Link

thomh

Tim Young [Elevate Software] wrote:

<< Let me verify what your needs are here.  Do you want the "depress" action, or are you just looking for an icon that you can click ?  If the latter, then you can do that with the ctIcon control type now. >>

Well, it does look more like a button click with the depress action there.

I tried with an ctIcon and two problems come up:

1. With RowSelect = False and AlwaysShowControls = True, when I focus the ctIcon column I see the active selection.
This remains hidden when I use other ControlTypes.

2. There is no click event

// Thom
Thu, Apr 27 2017 10:17 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Thom,

<< 1. With RowSelect = False and AlwaysShowControls = True, when I focus the ctIcon column I see the active selection. >>

Yeah, this is intentional.  I'm not sure if I can turn that off, either.  So, the grid might need some additional control types/properties for this.

<< 2. There is no click event  >>

There's a TGrid.OnClick event that gives you what you want, in that respect.

Tim Young
Elevate Software
www.elevatesoft.com
Image