Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: tushar Kanvinde
  Where is tushar Kanvinde?
 Kolhapur, Maharastra
 India
 tushar Kanvinde
 To: Jun Tangunan
  Where is Jun Tangunan?
 Cabanatuan
 Philippines
 Jun Tangunan
 Tags
Subject: RE: Show disabled Listbox item?
Thread ID: 268754 Message ID: 268764 # Views: 38 # Ratings: 0
Version: Visual FoxPro 9 Category: Forms
Date: Wednesday, July 14, 2010 12:52:56 PM         
   


> >
> > What you say makes me down. I just changed from a grid to a listbox 3 days ago, and worked almost non stop to make this form work good.
> > The list is only here to select a student and edit some notes. During note editing, I disable the list so the user can't change the student whose notes he's editing. I think I'll keep the list for the moment.
> > Would you know a way to highlight the selected item?
> >
> > Regards
> > Samir
>
>
> I seldom use listbox now with VFP9 as like Cetin says, grid gives more...
>
> By itself, I cannot think of a way to make the current selection remain highlighted. But don't be so downhearted, there is a trick to achieve that, not by toggling Enabled to False but by creating a transparent borderless shape on top of the listbox. Initially make it Visible=.F.. Then when you want to "disable" the listbox, make the transparent-bordeless shape Visible=.T. instead.
>
> The effect would be the same, user cannot click on the listbox but the highlight will remain.
>
>
> http://www.junblogs.com/
> http://weblogs.foxite.com/sandstorm36/default.aspx
> http://www.coderisland.com/forum/viewforum.php?f=10

TAB will work though. Maybe set the when to return .f. or put TabStop=.f.

Regards
Tushar

ENTIRE THREAD

Show disabled Listbox item? Posted by Samir H. @ 7/14/2010 11:50:44 AM
RE: Show disabled Listbox item? Posted by Cetin Basoz @ 7/14/2010 11:53:49 AM
RE: Show disabled Listbox item? Posted by Samir H. @ 7/14/2010 12:22:35 PM
RE: Show disabled Listbox item? Posted by Jun Tangunan @ 7/14/2010 12:29:42 PM
RE: Show disabled Listbox item? Posted by tushar @ 7/14/2010 12:52:56 PM
RE: Show disabled Listbox item? Posted by Samir H. @ 7/14/2010 12:56:12 PM
RE: Show disabled Listbox item? Posted by Cetin Basoz @ 7/14/2010 2:23:27 PM
RE: Show disabled Listbox item? Posted by Samir H. @ 7/14/2010 2:59:41 PM
RE: Show disabled Listbox item? Posted by Cetin Basoz @ 7/14/2010 3:28:07 PM
RE: Show disabled Listbox item? Posted by Tamar Granor @ 7/14/2010 10:27:52 PM
RE: Show disabled Listbox item? Posted by Samir H. @ 7/15/2010 4:05:24 AM
RE: Show disabled Listbox item? Posted by Koen Piller @ 7/14/2010 10:43:05 PM
RE: Show disabled Listbox item? Posted by Samir H. @ 7/15/2010 4:42:23 AM
RE: Show disabled Listbox item? Posted by Koen Piller @ 7/16/2010 12:43:41 AM
RE: Show disabled Listbox item? Posted by Tamar Granor @ 7/14/2010 10:29:15 PM
RE: Show disabled Listbox item? Posted by Samir H. @ 7/15/2010 4:11:40 AM
RE: Show disabled Listbox item? Posted by Tamar Granor @ 7/15/2010 10:42:33 PM