workaround:
Capture the Form's hwnd by using the Windows API call GetActiveWindow()
You can then force focus with the Windows API call SetFocus
I don't recall wether they are part of the standard WinAPI lib in
Axapta, but they are easily implemented
Ie
Int hwnd;
Hwnd=WinAPI::GetActiveWindow();
...
WinAPI::SetFocus(hwnd);
HTH
Pieter
_____
From: Steeve Gilbert [mailto:[EMAIL PROTECTED]
Sent: 15. juni 2004 23:12
To: [EMAIL PROTECTED]
Subject: [development-axapta] Focus with Box::info and Box::stop
I have a form with property Frame=None (for PDA purpose). I click a
button (on that form) and the validation can popup a Box::stop or a
Box::Info then I set the focus on a StringEdit of the form. When the
Box::stop comes up the focus is getting back to the StringEdit but when
it's the Box::Info, the focus is going back to the main Axapta window
(with the menus and toolbar). The focus is not even on my form! Yes,
it's that weird. If you have any ideas of what I'm doing wrong or have
a workaround let me know, I'd appreciate it.
Regards,
Steeve...
Yahoo! Groups Sponsor
ADVERTISEMENT
click here
<http://us.ard.yahoo.com/SIG=129bo3g34/M=298184.5022502.6152625.3001176/
D=groups/S=1705006764:HM/EXP=1087445020/A=2164339/R=0/SIG=11e2d64in/*htt
p:/www.netflix.com/Default?mqso=60183348>
<http://us.adserver.yahoo.com/l?M=298184.5022502.6152625.3001176/D=group
s/S=:HM/A=2164339/rand=239134657>
_____
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]
be>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> .
[Non-text portions of this message have been removed]
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

