Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it possible to display this view on a startup?
Message
De
29/07/2009 20:29:41
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual ProMatrix
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01414734
Message ID:
01415446
Vues:
35
This message has been marked as a message which has helped to the initial question of the thread.
>>>>You might want to use Show() -event, because it is not guaranteed that all controls have initialized by the time the form initializes. Since Show fires after Init (remember LISA G), it is a "safer" place for form control -related code...
>>>
>>>Actually, I want to show that picklist before showing the main form. In another words, I want to show the picklist form, pick a record and start from that record.
>>>
>>>So I would appreciate advices of how to achieve this with VPM framework.
>>
>>Oh, I see. You can set up a small intervening (modal) form that contains the search box, or you can use VPM's native Locate() method by firing it directly from an intervening modal form that you can make invisible to show only the search screen.
>
>Hi Pertti,
>
>It is not clear to me yet, but I'll try to look into it.
>
>Thanks.

Naomi --

It is pretty simple, really.

Option 1: Before you call the actual form, call a small form that contains only your search box. Make that form modal, so that it can return a value to your calling program/form. Then open the actual form and position it to the previously selected value/row.

Option 2: Same as above, except make the small form invisible (Thisform.invisible = .T.), and have it's show() -method call its VPM Locate() -method. Create a locate list using the VPM form builder's list builder, which allows you to quickly and simply create a searchable/sortable selection list.

This makes it look like the search list pops up first, and once you make a selection, the actual form pops up with the value selected from the search list (or doesn't pop up if search was canceled.
Pertti Karjalainen
Product Manager
Northern Lights Software
Fairfax, CA USA
www.northernlightssoftware.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform