Treeview stops answering

Hi, all.

I'm needing some help with a rather strange problem: I have a form with aTreeview (ActiveX Control) in it. There's a routine that calls another form. Funny thing is: if I trace this routine and form (using the SET STEP ON command) it works perfect. On the other hand, if I run it normally, when I lose the second form, the Treeview stops responding to the mouse, I.E it doesn't scroll or allow the user to click a node.

I have no idea as to what I should be looking for...

Thanks in advance



Answer this question

Treeview stops answering

  • CWORRELLSTER

    On the other hand, if I run it normally, when I lose the second form, the Treeview stops responding to the mouse, I.E it doesn't scroll or allow the user to click a node.

    You do not say which version of VFP you are using. There were some bugs in VFP 6.0 that involved using activeX controls on modal forms - the events would quit firing. This sounds like it may be a related issue (if you are using version 6).

    Is the child forma modal form Are you sure it is being released



  • skullfire

    Oh, and the child form is a modal form

    And have you verified that the modal form really is being released and that it is not just hiding



  • Hagop

    Can you post the code that you are using to launch the child form

  • Bio Andy

    I've already solved it... Just made the form modal, and it strated working perfectly...

    anyhow, that's the launching code:

    Local wChave
    wChave= Subst(ThisForm.Tree.SelectedItem.Key, 5, ;
    AT('*', ThisForm.Tree.SelectedItem.Key, 2) - 5)
    DO FORM e:\posto\prescricaoevoltmp.scx WITH VAL(wChave),DATE()


  • Michael_Guinto

    Hi,

    I really forgot to tell you the VFP version I'muing... I' using VFP8.0.

    Oh, and the child form is a modal form

    Thanks


  • pezimadio

    I'm sorry. I meant to say that the form is NOT a modal form
  • Treeview stops answering