Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Top-Level form doesn't get focus??
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00950551
Message ID:
00950696
Views:
18
Hi Victor,

Would this work?
nRow=MROW()
nCol=MCOL()
MOUSE CLICK AT 0.1,0.1
MOUSE CLICK AT nRow,nCol
>Ok this worked.
>I'll give browneee points for anyone who can figure out how to get the d)!^$(@m title bar to turn blue.
>Is there some type of API cally thingy that I can use to simulate a title bar click??? (that, of course, makes it turn blue.).....picky, aren't I? haha
>
>>i put this in my login form (activate())
>>
>>
>>DECLARE INTEGER SetForegroundWindow IN USER32 INTEGER
>>DECLARE INTEGER FindWindow IN USER32 STRING @ , STRING @
>>lnHWND=FindWindow(0, _Screen.Caption)
>>IF lnHWND>0
>>	SetForegroundWindow(lnHWND)
>>ENDIF
>>
>>
>>
>>>I have an app that shows a splash screen (as-top-level form, with Screen = Off in my config.fpw file)...
>>>then when it's done, the login screen pops up (also a top-level-form). I've set always-on-top to .T., yet the user still has to click on the form (which is acutally a vcx) to be able to type in their passowrd, the form never gets focus.
>>>Obviously this will be rather anoying. Anyone know a way around this???
>>>Thanks!
Regards,

Mike

"We try to solve the problem by rushing through the design process so that enough time is left at the end to uncover the errors that were made because we rushed through the design process."
- Glenford Myers

If you're going through hell, keep going. - Walt Disney
Previous
Reply
Map
View

Click here to load this message in the networking platform