Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Can change TGridColumn's OnHeaderClick to function have boolean return value
Wed, Nov 30 2016 11:14 PMPermanent Link

kentersoft

In GridColumn's DoHeaderClick event,

function TGridColumn.DoHeaderClick: Boolean;
begin
  {$IFNDEF DESIGN}
  if Assigned(FOnHeaderClick) then
     FOnHeaderClick(Self);
  {$ENDIF}
  Result:=True;
end;

But TGridColumn's property OnHeaderClick is TNotifyEvent,
the TNotifyEvent can't have return value, can change this to a function, then in
DoHeaderClick,

function TGridColumn.DoHeaderClick: Boolean;
begin
  {$IFNDEF DESIGN}
  if Assigned(FOnHeaderClick) then
     Result := FOnHeaderClick(Self);
  {$ENDIF}
end;

thanks!
Thu, Dec 1 2016 4:07 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

kentersoft,

Thanks.  I think this is already fixed, but if not, I will make sure that it is.

Tim Young
Elevate Software
www.elevatesoft.com
Image