Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Input Window Image Won't Go Away
Message
De
11/11/2003 23:23:19
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Input Window Image Won't Go Away
Divers
Thread ID:
00848975
Message ID:
00848975
Vues:
63
I use an input box to capture a value entered by the user for a search string. This input box is created when a form is active by clicking a search button.
*cmdsearchname.click
thisform.searchname=''
thisform.searchname=INPUTBOX("Enter a Name to Search For",;
   "Search Current Policies By Name ",thisform.searchname)
THISFORM.searchname=UPPER(ALLTRIM(thisform.searchname))
IF !EMPTY(thisform.searchname)
	THISFORM.GOTFOCUS
	THISFORM.filldefault = .F.
	THISFORM.filltree2(thisform.searchname,.f.,.f.)
ENDIF
RETURN
The problem is that after the user enters the string to search for, the search begins, but the image of the inputbox is still on the screen until the search finishes. How can I force the inputbox to be removed from the screen before the search begins? I want focus to be on the form itself while the search is in progress. I've tried thisform.gotfocus but a portion of the inputfox still remains on the screen.

TIA,
Tracy
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform