Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listboxes do not respond to mouse click
Message
From
20/12/2005 10:36:29
 
 
To
20/12/2005 10:33:16
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01079471
Message ID:
01079550
Views:
30
>>Fabio, I have hacked my form to a point where I can isolate the problem. I will describe it here but if you need me to I can send you my sample form to repro the problem.
>>
>>I have a form with a pageframe which has a few pages (4 in my example). On each page I put a listbox bound to an array of items which for quick testing I made this a public array of 6 items.
>>
>>The form has a custom REFRESH event:
>>
>>
>>WITH THISFORM
>>
>>  .LOCKSCREEN = .T.
>>
>>  WITH .PAGEFRAME1
>>
>>*   .PAGE_PRCS.REFRESH
>>*   .PAGE_IND1.REFRESH
>>*   .PAGE_IND2.REFRESH
>>
>>  ENDWITH
>>
>>  .LOCKSCREEN = .F.
>>
>>ENDWITH
>>
>>
>>If you use the above refresh code then the listboxes work properly first time. If you un-comment the refresh for the individual pages then you must first activate those pages before the listboxes work properly. Use of DODEFAULT() before or after makes no difference. Only by commenting out the individual page refresh lines above will the listboxes work first time.
>>
>>Hope this helps.
>
>try this change:
>
>nodef
>WITH THISFORM
>
>  .LOCKSCREEN = .T.
>
>  WITH .PAGEFRAME1
>
>   .PAGE_PRCS.REFRESH
>   .PAGE_IND1.REFRESH
>   .PAGE_IND2.REFRESH
>
>  ENDWITH
>
>  .LOCKSCREEN = .F.
>
>ENDWITH
>
It is the same with NODEFAULT. All pages that were set for REFRESH must be activated once before the listboxes will work properly.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform