How To Disable Some Rows In A Listbox

How To Disable Some Rows In A Listbox

Postby acwoo1 » Wed Aug 28, 2013 1:45 pm

Hi

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

Regards
ACWoo
Using FWH1304+bcc582+Harbour
acwoo1
 
Posts: 173
Joined: Tue Nov 10, 2009 10:56 am

Re: How To Disable Some Rows In A Listbox

Postby avista » Thu Sep 05, 2013 6:41 am

Hi,
I need that solution too
Regards,
User avatar
avista
 
Posts: 301
Joined: Fri Jun 01, 2007 9:07 am
Location: Macedonia

Re: How To Disable Some Rows In A Listbox

Postby James Bott » 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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 64 guests