Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New BUG: ListBox on page and Click event
Message
From
28/12/2005 10:41:04
 
 
To
28/12/2005 10:31:54
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01080960
Message ID:
01081261
Views:
32
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.


>THANK YOU for the suggestion. But I am afraid it doesn't work. In fact, as I tested it, some of the listboxes appeared at first, then when I clicked on another page and came back they did not reappear.
>
>So I went to the Activate/Deactivate of each page to set/reset the visible property of the listboxes and still no luck.
>
>Do you have any other suggestions? What's really weird is I created a test form with the same number of pages and listboxes, and placed each listbox in the same order, then I used a simple query to add items to each list box, and I have no problems. But the form in our application is much more complex, and it has all sorts of objects on it and here's the weirdest part, after I select a listbox on page 5, all of the other listboxes become "clickable". ??
>
>Any Ideas would greatly be appreciated. I have a 15 year old application with over 100,000 lines of code where this form is a central to the whole app. and I need to be able to upgrade to 9.0 for the new report features... THANKS!! IN ADVANCE.
>
>Bob
>
>
>
>
>>>I am trying to understand your workarounds...
>>>
>>>The first one seems to reset the Visible property of the list in the list's init event, and then refresh every list object individually.
>>
>>>The second one seems to be binding the click event of the page to the click event of the list, but what if you have more than one list on the page?
>>>
>>>I've tried workaround 1 and it doesn't seem to solve my problem. I've tried to move the list objects and size them so they don't overlap over 50 percent of each other, but I have too many list objects, and I can't shrink them down enough.
>>>
>>>Am I missing something, and can I get workaround2 to work with more than one list object per page?
>>>
>>
>>>I have 6 pages, and 8 list objects 1 on page 1, 2 on page 3, 2 on page 4 and 2 on page 5 and 1 on page 6.
>>
>>You can.
>>
>>1. for All the 8 Listboxes set property Visible to .F.
>>
>>2. for All the 8 Listboxes put on UIEnable Event
>>this.Visible = m.lEnable
>>
>>
>>>
>>>Thanks for any suggestions...BTW, this has worked fine for over 10 years!
>>>
>>
>>I send this repro to the MS Feedback. Hope the Team fix it.
>>
>>>Bob
>>
>>Fabio
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform