Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Popup doesn't deactivate when called from command button
Message
 
 
To
12/07/2005 14:02:06
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Miscellaneous
Thread ID:
01031798
Message ID:
01031836
Views:
14
This message has been marked as the solution to the initial question of the thread.
I would use a simple modal form with a listbox or grid and 'Select' and 'Cancel' buttons.

>I have a form in which I show a cursor as a read-only grid. I want the user to be able to add and delete rows in the grid by using command buttons ADD-TYPE or DELETE-TYPE. The buttons call a popup with all the possible types (a list from another cursor). I don't want the users actually sitting on the grid using a list box because the grid needs to stay clean (doesn't have to be checked for duplicates or flaws when the user leaves the form). And a list box still wouldn't provide a way to delete records from the underlying cursor.
>
>The popup is defined in the form's LOAD method and the bar commands do work so I can pickup the choice. My one hitch is that when the bar is selected the popup doesn't deactivate until I actually click somewhere else.
>
>I am guessing that the pop actually exists outside the form even though the form created it? How do I deactive it and get the user back to the command button on the form?
>--OR
>Is there a nicer way to have a choice list popping up that can be called from a command button and used to manage the grid?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform