Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it possible to catch Scrolling in ListBox
Message
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00345588
Message ID:
00345706
Views:
27
Nadya,

>Thanks for the reply. I tried to SetFocus to some form's control and then back to this in ListBox.MouseUp event. It partially helps, however, sometimes whole content of listbox disappears and listbox becames blank :( I'm afraid, there is nothing I can do with this listbox bug. How pity :(((( It seems to me, that I need to design another control, based on grid. This grid should behave similar to multi-select listbox. This is very tough problem, I'm afraid, but it seems to me, that I must create this control because of VFP multi-listbox bug...

I'm not sure what kind of "bug" you think you are having. Moving focus out from under a control during an event like MouseUp can definately be problematic. Perhaps if you describe what you are trying to accomplish we can come up with a workable solution. What kind of a UI need requires you to know if the user has scrolled to another section of the listbox, but does not change their selected item?

>BTW, if my control consists of several controls, how can I add properties/methods to the inner control? For example, this control I was working, consists of container _-> listbox, commandbutton, checkbox. I wanted to add listbox TopIndex_assign, but can not do it in Class menu. Is there a way to do this?

You can't. The Class designer will only add properties and methods to the outermost container. The same for the Form designer, it will only add to the form. You'll have to but the code in a subclass of the listbox, and put an instance of that subclass in the container.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform