Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Input Window Image Won't Go Away
Message
From
12/11/2003 09:17:13
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
To
12/11/2003 09:10:16
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00848975
Message ID:
00849069
Views:
31
Tracy,

I don't know if this will help, and this is a WAG, but your problem may be related to the AutoYield setting and ActiveX controls.

Mike

>No, I made sure of that. The call to thisform.gotfocus seems to work somewhat, but not completely. The search populates a treeview on the form and it works fine, however, if there are a lot of records returned from the search expression then it appears that it hogs processing and the inputbox never gets released until the treeview is finished updating. I would like to ensure that the inputbox is completely released somehow before proceeding with the search if possible.
>
>
>>>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
>>
>>Tracy,
>>
>>Would you have form.LockScreen = .T. at the time of the InputBox()
Previous
Reply
Map
View

Click here to load this message in the networking platform