Re: Treeview and Itemheight



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
>>
>
>


.



Relevant Pages

  • Re: Whats this inductor doin?
    ... but I think the original post said this stage was a frequency ... >multiplier with an OUTPUT frequency of about 145 MHz. ... An aside to Steve... ...
    (sci.electronics.basics)
  • Re: odd warning in Xilinx ISE webpack
    ... Can you tell me a little bit more about what device you are targeting and ... the version of WebPACK you are using. ... Are you using any multiplier blocks ... Steve ...
    (comp.arch.fpga)