FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How To Disable Some Rows In A Listbox
Posts: 175
Joined: Tue Nov 10, 2009 10:56 AM
How To Disable Some Rows In A Listbox
Posted: Wed Aug 28, 2013 01:45 PM

Hi

I want to disable some rows in a listbox. How do I do it ?
Thanks

Regards
ACWoo
Using FWH1304+bcc582+Harbour

Posts: 301
Joined: Fri Jun 01, 2007 09:07 AM
Re: How To Disable Some Rows In A Listbox
Posted: Thu Sep 05, 2013 06:41 AM

Hi,
I need that solution too
Regards,

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: How To Disable Some Rows In A Listbox
Posted: Thu Sep 05, 2013 10:28 PM
The Listbox is a Windows control. I don't believe I have ever seen disabled items in a listbox. And I don't see any property or method for disabled items in Microsoft's documentation for the listbox:

http://msdn.microsoft.com/en-us/library/system.windows.controls.listbox.aspx

The simple solution would be to not add the items you want disabled to the list. If needed, you could create two lists, one with all the items and one with the disabled items. Or if you need several different lists, then either make them all beforehand or build them as needed in the program.

James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion