Page 1 of 1

Action em Tree

Posted: Fri Sep 22, 2006 1:33 pm
by gibaf
Ola to all…. (I am new in the group)

1) Has as to make one tree (TTreeView) with opcao of ACTION (exactly she will be necessary to change the classroom)?
2) have as to change the source of tree?

I am very been thankful the group for the chance, or possibility of being able to clarify these you doubt!


Thanks a lot


Ola a todos.... (sou novo aki no grupo)

1) Tem como fazer um tree (TTreeView) com opcao de ACTION (mesmo se for preciso mudar a classe) ?
2) tem como mudar a fonte do tree ?

Fico muito agradecido ao grupo pela oportunidade, ou possibilidade de poder esclarecer essas duvidas !

Muito Obrigado

Gilberto
(Brasil - Toledo - PR)
giba_f@hotmail.com

Posted: Sat Sep 23, 2006 5:55 am
by Antonio Linares
Gilberto,

Please review samples\TestTree.prg:

oTree:bChanged = { || oWnd:SetText( If( oTree:GetSelected():GetParent() != nil,;
oTree:GetSelected():GetParent():cPrompt + " + ", "" ) + ;
oTree:GetSelText() ) }

Posted: Sat Sep 23, 2006 2:13 pm
by gibaf
First, thanks for the reply.

Had seen and tested, but not was exatament what I am needing… The ACTION would be the idea!

Nor changing the classroom?

Thanks a lot!

OBS: sorry my ingles (hehehehe)

Posted: Thu Sep 28, 2006 6:22 pm
by gibaf
Still I am needing. If they any person to souper and will be able to inform, I am been thankful to me!

Posted: Thu Sep 28, 2006 6:27 pm
by Antonio Linares
Enter key is used to open and close a tree branch, so you should not use it to fire an action. You may use mouse double click event oTree:bLDblClick = { || MsgInfo( "double click" ) }