Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preselecing t Items in a ListBox
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00393757
Message ID:
00394170
Views:
12
Nevermind Barbara. I figured it out, their is a subclass code that fires resulting to resetting the listbox. Although, putting the code in activate event remains ? to me.

>Can you send a working simple form for me to check what I am lacking at your convenience?
>
>>Yes, the methods I've suggested do work. I've used them both. Your requirement of putting a call in every object's MouseMove is burdensome and completely unnecessary.
>>

>>>>You must either put your code in the form's Activate method, or, if it's in the form's Init, you must have a THIS.SETFOCU() in the Init of the listbox.
>>>
>>>It won't work Barbara. What I've done was this:
>>>
>>>1. Created firsttime property of the form initially set as .T.
>>>2. Created custom method with this code:
>>>

>>>If Thisform.firsttime
>>> For i = 1 TO This.List1.ListCount
>>> This.List1.Selected(i) = .T.
>>> Endfor
>>> Thisform.firsttime = .F.
>>>Endif
>>>
>>>3. Each object's MOUSEMOVE property especially FORM, should call the routine above for execution.
>>>

JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform