"Piske, Harald" wrote:
>
> > $TV->FirstVisible($firstnode); # does not work
> > $TV->Select($firstnode, 5); # does not work
>
> That's odd - I do $Main->Tree->Select($node) in my code and it sure works.
with $win->Tree->Select($firstnode);
In my application, the first node is selected, but the scrollbar
is always on the bottom!
> What are you trying to do with that second parameter, the 5? Could it be
> that you have warnings off and the select never gets called because of a
> parameter mismatch or something?
from the docs I read:
<docs>
Select(NODE, [FLAG])
Selects the given NODE in the TreeView; the optional FLAG parameter can
be set to 5 if you want the selected NODE to become, if possible, the
first visible item in the TreeView. If NODE is 0 (zero), the selected
item, if any, is deselected.
</docs>
> Maybe $Main->Tree->EnsureVisible($node) helps?
no! :(
> LOL!
> OK, that one was actually easier to run than to read.
:)))
Thanks for the answer!
--
$_=q,6;-16;-1;-8;0;7;-13;-12;-9;-3;13#4A75737420616E6F74686572,,($_,$b)=
split?#?;@b=split?;?;map{$c.=$_,$d.=chr$b[$e++]+ord}split??,pack'H24',$b
;chop$d,print$c.chr(32).$d
|