Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Window List
Message
From
15/01/2003 17:01:43
 
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Title:
Miscellaneous
Thread ID:
00741366
Message ID:
00742129
Views:
19
The reason is these are search screens and my users would like to see the search returned to where they left off in case they chose the wrong item.

We have some older search screens and the way they were implemented is that they are destoyed when an item is selected. There is currently "spagetti" code to bring the screen back to what it was, but it is only about 80% correct. I am currently replacing these search screens with much more functional ones instead of racking my brain sorting out the existing mess.

By Hide()ing the screens on Select or Cancel, the detail/editing screen can see if the user selected OK or Cancel and get the ID of the item selected and load it. If the user has chosen the wrong item they can click the Search... button and then return back to exactly where they left off simply by Show()ing the screen. But the user has to click on the Search... button to make the detail/editing screen capture the users current selection. When selected from the menu, the search form simply appears. The detail/editing screen has no idea the user has selected something different.

IMO, I think the the VFP window list should remove those screens that are not visible. For now I have disabled the Window menu until I can write or find suitable code for my little problem.

Thanks for your response anyway!

Don





>Don,
>
>I'd say not a bug.
>
>If the window exists then it'll show up in the Window menu list, it's visibility is not considered. Why don't you simply release the form and reinstantiate it the next time they need it?
>
>>I don't know if this is a bug or not.
>>
>>I recently implemented using the VFP Window list to allow users to select an open form from the menu if it is hidden under other windows. This is the menu created when using Quick Menus option. My search forms are simply hidden from view when a user selects an item using the Hide() method.
>>
>>When the form is hidden, shouldn't it be removed from the Window list?!
>>
>>The form can be selected from the list and it will reappear. The search forms are modal and don't work when selected from the menu, VFP can get locked up in dev mode.
>>
>>Any information on this would be greatly appreciated. BTW, I'm using VFP 7 SP1 and NT 4.0 SP6a.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform