Guidance
指路人
g.yi.org
Guidance Forums / Reginald Rexx / Make a window the focus and in front

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Make a window the focus and in front
#11325
Posted by: Doug Arndt 2007-07-31 04:42:34 Last edited by: Jeff Glatt 2009-03-04 16:13:05 (Total edited 1 time)
How can I force a new window into being the current focus and in front of everything else ?
Doug
Message2.
#11328
Posted by: Jeff Glatt 2007-07-31 06:37:53 Last edited by: Jeff Glatt 2009-03-04 16:12:15 (Total edited 1 time)
Call GuiSetCtlPlacement(), and use the 'TOP' option. Make another call passing only the window handle. Something like:
guisetctlplacement(guiwindow, , , , , , 'TOP')
guisetctlplacement(guiwindow)
If you want to instead make a specific control in the window have the focus, then replace GuiWindow in the second call, with the quoted variable name associated with the control.
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2024-3-29  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0