Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Jun Tangunan
  Where is Jun Tangunan?
 Cabanatuan
 Philippines
 Jun Tangunan
 To: Phillip Bongers
  Where is Phillip Bongers?
 Sydney
 Australia
 Phillip Bongers
 Tags
Subject: RE: Listbox All Disabled
Thread ID: 345221 Message ID: 345227 # Views: 39 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Monday, May 21, 2012 2:16:54 AM         
   


> Jun,
> Thanks for your thoughts
> Yes, It just affects items not the whole control.
>
> Could I use a container with the listbox and then move the
> container to the front to simulate disabled.
>
> Any suggestions on how to do it??
> Phillip
>
> >
> >
> > Maybe you are talking about the DisabledBackColor of Listbox which is set to RGB(255,255,255) as default? Then on PEM window, change it to match the textbox's RGB(236,233,216).
> >
> > However, that will affect only the disabledbackcolor of items in the listbox so if it is not full to the bottom, then the empty space where no list items are will still be white.
> >
> > http://sandstorm36.blogspot.com
> > http://weblogs.foxite.com/sandstorm36


I don't think that will work because even if we do put shape or container on top of it, then we have to make it transparent so the effect is nullified. If we make it as opaque, then you won't see the items in the list. However, I think I found one solution to simulate that effect which is via ItemBackColor manipulation.

Here I rushed a post in my blog so others who love using Listbox and has that problem as well can fix it: http://sandstorm36.blogspot.com/2012/05/small-listbox-appearance-trick.html


http://sandstorm36.blogspot.com
http://weblogs.foxite.com/sandstorm36

ENTIRE THREAD

Listbox All Disabled Posted by Phillip Bongers @ 5/21/2012 12:04:43 AM
RE: Listbox All Disabled Posted by Jun Tangunan @ 5/21/2012 12:23:49 AM
RE: Listbox All Disabled Posted by Phillip Bongers @ 5/21/2012 1:53:04 AM
RE: Listbox All Disabled Posted by Jun Tangunan @ 5/21/2012 2:16:54 AM
RE: Listbox All Disabled Posted by Phillip Bongers @ 5/21/2012 8:14:14 AM
RE: Listbox All Disabled Posted by Koen Piller @ 5/21/2012 12:57:52 AM
RE: Listbox All Disabled Posted by David Kurniawan @ 5/21/2012 8:35:58 AM
RE: Listbox All Disabled Posted by Phillip Bongers @ 5/21/2012 11:54:23 PM