Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find out if item is disabled in a listbox?
Message
 
 
To
14/01/2003 12:16:28
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00741505
Message ID:
00741553
Views:
29
>>Hi everybody,
>>
>>At first, this question looks trivial. However, there is no native property of the listbox, which would tell, if the item is enabled/disabled. The question was arised on Russian VFP Club Forum. My first idea was to check, if the List(i) starts with \. However, according to the person, who asked this question, this doesn't work.
>>
>>Do you have other ideas?
>>
>>=================================
>>The background of the problem: ListBox is used as the source for Drag&Drop. Once the item is moved, he adds \ to make it disabled. If he puts a mouse cursor on the disabled line and starts to move it, selected(i) returns .t. So, how to find out, that the item is disabled?
>>
>>Thanks in advance.
>
>Selected(i) would return .f. unless he's getting wrong i. i should be listindex which is 0.
>PS:It's a bad idea to use mousemove. Mousedown would be better.
>Cetin

He is using Mousedown... But anyway, it looks like a broken phone, because I'm trying to explain his problem, which I don't know all details... I invited him to participate in this thread directly, so may be this would be better...
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform