Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox click()
Message
From
11/06/2001 22:55:09
 
 
To
11/06/2001 15:30:29
Christian Cote
Les Logiciels Onoma Inc.
Longueuil, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00518019
Message ID:
00518198
Views:
8
>HI,
>I use a listbox on a form that display items and their prices. I need to display the total of selected items as the user select them. I created a small routine in the click() event of the lstbox that parse the sewleted items and calculate their total. The problem is that when I click on the list, even if the item is selected, the total textbox is badly updated. It is updated but not always in sync with the selected items. Sometimes, even if there are no items selected, I still see a total in the textbox. Even if I re-initialize the value of the textbox at the beginning of the routine in the click() event.
>
>Can you help me ?
>
>Thank you,
>Christian Cote

How about using a different approach? For selecting items from a master list, I tend to call a mover class which displays the list, drag and drop the items from source to destination side of a window, then the items in the destination side are returned to the calling window. The items can then be displayed, totalled, whatever.

I'm not at my office, where my development tools reside, so I'll have to wait until morning to send you a link. I did find "Trivial Controls" by Donald Orphanidys, download #003429. Maybe that will do the trick if you don't have a mover class already.
-Henry-
Previous
Reply
Map
View

Click here to load this message in the networking platform