|
-
Dec 12th, 2006, 09:52 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Locking some list items
Is it possible to disable certain items of a listbox instead of just the whole control? especially when its style is set to checkbox.
-
Dec 12th, 2006, 09:56 AM
#2
Re: Locking some list items
It is all or nothing.
Exactly what do you need to do. Perhaps we can come up with a suitable work around.
-
Dec 12th, 2006, 09:58 AM
#3
Re: Locking some list items
 Originally Posted by Neverbirth
Is it possible to disable certain items of a listbox instead of just the whole control? especially when its style is set to checkbox.
Locked how?
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
-
Dec 12th, 2006, 10:03 AM
#4
Thread Starter
Addicted Member
Re: Locking some list items
 Originally Posted by Hack
It is all or nothing.
Exactly what do you need to do. Perhaps we can come up with a suitable work around.
I'm just using two listboxes to display different categories in a couple of forms, one using checkbox style and which is being used to choose the categories to display, and the other is used to show, add, edit and delete them.
I'd like to disable the items which aren't yet defined, but I don't really need to do so.
-
Dec 12th, 2006, 10:20 AM
#5
Re: Locking some list items
What do you mean by "defined"?
-
Dec 12th, 2006, 12:12 PM
#6
Thread Starter
Addicted Member
Re: Locking some list items
 Originally Posted by Hack
What do you mean by "defined"?
The categories are fully configurable, and are by default empty, so instead of showing nothing when they are not set I want them to be shown on list as something like "-- Not yet defined --".
-
Dec 12th, 2006, 12:13 PM
#7
Re: Locking some list items
How is the listbox loaded?
What is your code?
-
Dec 12th, 2006, 12:15 PM
#8
Re: Locking some list items
You can decide if they are (not)"defined" when Click event fires and simply prompt the user.
-
Dec 12th, 2006, 12:18 PM
#9
Re: Locking some list items
 Originally Posted by gavio
You can decide if they are (not)"defined" when Click event fires and simply prompt the user.
He wouldn't necessarily even need to do that.
Depending on how he is adding the items to the listbox, he can append "--Not Defined--" to the items so that they show in the listbox already labeled.
-
Dec 12th, 2006, 03:30 PM
#10
Thread Starter
Addicted Member
Re: Locking some list items
 Originally Posted by Hack
He wouldn't necessarily even need to do that.
Depending on how he is adding the items to the listbox, he can append "--Not Defined--" to the items so that they show in the listbox already labeled.
Well, I already do so. What I'd like is that those list items are disabled (just if possible). Using something like the click event makes the checkboxes change for a brief moment.
I've anyway just found out about the itemcheck event, that can be used for this. Never tried it before.
Out of curiosity, were you thinking of some other method? I'm always grateful to hear different methods for a same thing.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|