Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find out if item is disabled in a listbox?
Message
From
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:
00741518
Views:
25
This message has been marked as a message which has helped to the initial question of the thread.
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform