Re: Treeview and Itemheight
- From: "Steve" <someone@xxxxxxxxxxxxx>
- Date: Mon, 31 Oct 2005 11:39:13 -0000
I finally sussed how it's done - here it is if anyone wants to know...
SetItemHeight(ANode: TTreeNode; AHeight: integer);
var
PItem: TTVItemEx;
begin
PItem.HItem := ANode.ItemID;
SendMessage(tvTreeView.Handle, TVM_GETITEM, 0, Longint(@pitem));
PItem.IIntegral := AHeight; // NOTE - This is the line height
multiplier
PItem.Mask := TVIF_INTEGRAL;
SendMessage(tvTreeView.Handle, TVM_SETITEM, 0, Longint(@pitem));
end;
"Steve" <someone@xxxxxxxxxxxxx> wrote in message
news:djtekk$89i$1$8302bc10@xxxxxxxxxxxxxxxxxxx
> By the way, I wish to set each item individually. I've found references to
> TVITEMEX, but does anyone have an example of how to process and accept
> these window's messages?
>
> Thanks
>
> Steve
>
> "Steve" <someone@xxxxxxxxxxxxx> wrote in message
> news:djtcr8$p4o$1$8300dec7@xxxxxxxxxxxxxxxxxxx
>> Hi
>>
>> Does anyone know how to set the itemheight for each item within a
>> treeview, in the same manner as you can do for a ListBox?
>>
>>
>> Thanks for any help
>>
>> Steve
>>
>
>
.
- References:
- Treeview and Itemheight
- From: Steve
- Re: Treeview and Itemheight
- From: Steve
- Treeview and Itemheight
- Prev by Date: Re: Version after Version
- Next by Date: Re: Searching in byte buffer
- Previous by thread: Re: Treeview and Itemheight
- Next by thread: Adding string to Memo
- Index(es):
Relevant Pages
|