Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
New BUG: ListBox on page and Click event
Message
De
28/12/2005 12:26:20
 
 
À
28/12/2005 12:07:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01080960
Message ID:
01081324
Vues:
42
You are not going to believe this. As I mentioned before I thought that I had to click on the listbox on page 6 in order to get the other lists to work, but with further study I realized it was just activating and deactivating the 6th page. So I put a form.pageframe.page6.activate() and a
form.pageframe.page6.deactivate() in the form.init and they all work now!!

(Oh and BTW, I still have the code that makes the listboxes visible and invisible...I don't know if I want to jinx it by taking that code out, I do think it has a role to play.)

I love WORKAROUNDS!!! This has been a very frustrating couple of days...I know, "welcome to programming". Believe me I've had some of these over the last 10 years, but this was the craziest.

THANKS TO ALL FOR THE HELP!!!!!!!!!!!!!!!!!!!

Bob

>NO LUCK YET.
>
>I removed all code from the Form.Refresh method, and called Form.Refresh in the Form.init, with no change in behavior. I still can't click on the 2nd list boxes on page 3,4 and 5 until I click on the listbox on page 6. Once I've clicked on the listbox on page 6, they all become available.
>
>Bob
>
>
>
>>Bob, I needed to do two things; (1) remove my custom form.refresh method and leave that method blank (I moved my code to a custom form method instead), (2) issue a thisform.pageframe1.refresh in the init of the form. This solved all my problems without needing to move any objects around.
>>
>>hth
>>
>>
>>>Yes. Sort of. I did try resizing the objects to less than 50 percent, and that seemed to work, but it made the form unusable. I tried various sizes, but never could get them small enough and still have the same functionality. I got one listbox to work, only to have others not work.
>>>
>>>I didn't quite understand what you meant by the refresh, so in the Init event of the class (form) I refreshed each list control, still no go.
>>>
>>>I am baffled. Its obviously a bug, but my question is, what's the workaround. :)
>>>
>>>Bob
>>>
>>>>Just out of interest Bob did you try my suggestions when I replied before? I also have an 8 page pageframe and each frame has 6 list boxes on them (plus other things) so its also quite complex.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform