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 13:02:15
 
 
À
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:
01081343
Vues:
40
What about programmatically clicking on the listbox on page6 from the very end of the form init then and then clicking on the control you want to have the focus? Something like:

thisform.pageframe1.page6.listbox1.click()
thisform.pageframe1.page1.listbox1.click()

or something to that effect (replacing with the correct control names of course). Does that work?

>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.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform