Search found 13 matches: setactivewindow

Return to advanced search

Re: Make a dialog never lost focus

How about something like:

oDlg:bLostFocus:= {|oDlg| SetActiveWindow(oDlg:hWnd)}
by James Bott
Thu Aug 21, 2014 2:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Make a dialog never lost focus
Replies: 16
Views: 3072

Re: SetActiveWnd( hWnd )

La acabo de encontrar, gracias.
SetActiveWindow()
Saludos.
by FranciscoA
Mon Sep 09, 2013 2:30 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: SetActiveWnd( hWnd )
Replies: 3
Views: 509

In previous code , to test a dialog is open you must : IF CheckMdiDlg(cTit,@nPos , .T. ) SetActiveWindow(oWnd:aDlg[nPos]:hWnd) IF IsIconic(oWnd:aDlg[nPos]:hWnd) ShowWindow(oWnd:aDlg[nPos]:hWnd , 1) END RETURN END When a record from a database is edited , you can also ...
by demont frank
Tue Oct 07, 2008 10:13 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: List of Open DIALOG's
Replies: 8
Views: 1609

... tooltip which was shown after a few seconds Uwe This can be done , as oBrwB:bChange := {|Self,lUpDown| ShowLine(Self,lUpDown, @ShowDlg,oDlg) , SetActiveWindow(oDlg:hWnd) , oBrwb:SetFocus() )} The second parameter (lUpDownn) is .T. when the row is changed (.F. changing columns) When .T. , a ...
by demont frank
Mon Jun 23, 2008 6:42 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse simple Leftclick
Replies: 8
Views: 1270

Darrell,

I don't know if either of these will work, but you can try:

SetForeGroundWindow( hWnd )

Or,

SetActiveWindow( hWnd )

You might also try a sysRefresh() afterward.

James
by James Bott
Thu Sep 27, 2007 6:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ActiveX window runs minimized
Replies: 6
Views: 1219

MAPISendMail forcing calling FWH app MODAL

... till it's done? I noticed (in mapi.c) that the call to mapisendmail uses GetActiveWindow() as one of it's parameters. From our app I tried doing a SetActiveWindow() to Outlook's hWnd (which I already know and I'm positive is the right one) but either SetActiveWindow() is broken and doesn't actually ...
by Luis Krause
Thu May 31, 2007 6:45 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: MAPISendMail forcing calling FWH app MODAL
Replies: 3
Views: 2199

Me too. :) try this: [code] SetActiveWindow(hWnd) [code] Hi ! Enrico. Clipper is my language when I was Born Thank's Enrico for some help for me. You are the good guy in the world :shock: How to focus my window application [code] ...
by yam_hiong
Mon Mar 12, 2007 8:08 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: close EXCEL.EXE
Replies: 10
Views: 2823

How to bring mdichild to foreground

Doews anyone have any idea how to bring a mdichild window to the foreground (make it active)? I have tried setForegroundWindow(), setFocus(), and setActiveWindow() and none seem to work. In the following example, pressing any of the buttons should bring the clients window to the foreground--at ...
by James Bott
Tue Oct 24, 2006 10:49 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to bring mdichild to foreground
Replies: 1
Views: 630

... revisited my Windows 2000 API SuperBible, and it's appear than "ShowWindow does not make sure the window is in the foreground. Use SetWindowPos or SetActiveWindow function to bring a window to the foreground." Also, there is LockSetForegroundWindow function who "...disable or enables the calls ...
by Badara Thiam
Mon Aug 14, 2006 7:50 am
 
Forum: FiveWin for CA-Clipper
Topic: VISTA BETA 2- ShowWindow
Replies: 12
Views: 4548

... aPt1[2] := oWin:nLeft + ( nDesp * 1.33 ) aPt2[2] := oWin:nRight + nDesp IF hWin = 0 aPt1[1] := -2 aPt1[2] := -1 aPt2[1] := -2 aPt2[2] := -1 ELSE SetActiveWindow(hWin) ENDIF ClientToScreen( hWin, aPt1) ClientToScreen( hWin, aPt2) nDesp:= nDesp * 9 DEFINE TRANSPDIAG oDls FROM aPt1[1],aPt1[2] TO ...
by manuramos
Mon Apr 24, 2006 6:37 pm
 
Forum: FiveWin para CA-Clipper
Topic: Para Manu Ramos (diálogo con sombra)
Replies: 1
Views: 1018

... aPt1[2] := oWin:nLeft + ( nDesp * 1.33 ) aPt2[2] := oWin:nRight + nDesp IF hWin = 0 aPt1[1] := -2 aPt1[2] := -1 aPt2[1] := -2 aPt2[2] := -1 ELSE SetActiveWindow(hWin) ENDIF ClientToScreen( hWin, aPt1) ClientToScreen( hWin, aPt2) nDesp:= nDesp * 9 DEFINE TRANSPDIAG oDls FROM aPt1[1],aPt1[2] TO ...
by manuramos
Wed Mar 15, 2006 6:27 pm
 
Forum: Utilities / Utilidades
Topic: Sugerencias GET's
Replies: 6
Views: 3832

Try with SetActiveWindow(oWnd:hWnd)


Frank
by Frank Demont
Fri Dec 23, 2005 5:04 pm
 
Forum: FiveWin for CA-Clipper
Topic: Focus oWnd
Replies: 23
Views: 8245

Return to advanced search