Search found 52 matches: setwindowpos

Return to advanced search

Re: Ventanas Emergentes

define dialog oDlg ...
activate dialog oDlg centered on init(SetWindowPos(oDlg:hWnd,-1,0,0,0,0,3))
by MGA
Sun May 03, 2015 1:23 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ventanas Emergentes [Solucionado]
Replies: 2
Views: 659

Re: Save dialog coordinates then redisplay same place

... James I also discovered this, below is the code to the Method "SetCoors" in the TWindow class: METHOD SetCoors( oRect ) CLASS TWindow SetWindowPos( ::hWnd, 0, oRect:nTop, oRect:nLeft,; oRect:nRight - oRect:nLeft + 1,; oRect:nBottom - oRect:nTop + 1, 4 ) // Important: // Use 4 for ::nTop ...
by byron.hopp
Sat Dec 06, 2014 3:54 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Save dialog coordinates then redisplay same place
Replies: 26
Views: 5235

Re: Make a dialog never lost focus

... cancel define timer oTimer of oWnd interval 1000 action(oTimer:Deactivate(), TestFocusApp(), oTimer:Activate()) activate window ownd on init(setwindowpos( oWnd:hwnd, -1, 0, 0, 0, 0, 3 ),obutton[1]:setfocus(),otimer:activate()) return nil /**************************************/ static function ...
by MGA
Wed Aug 20, 2014 8:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Make a dialog never lost focus
Replies: 16
Views: 3093

New FTDN (July) 2014 (FWH 14.07)

... from a RC dialog, generating all the tedious REDEFINEs for you :-) http://forums.fivetechsupport.com/viewtopic.php?f=3&t=28862 * Fix: Function SetWindowPos() was not properly 64 bits compatible. Now it is ok. Thanks to Felix! * Enhancement: Some enhancements on samples\FiveDBU.prg. Don't miss ...
by Antonio Linares
Mon Aug 04, 2014 6:41 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN (July) 2014 (FWH 14.07)
Replies: 3
Views: 3114

Re: Tree. Intercambio de posiciones

... IF !::lFocus RETU NIL ENDIF IF oObj == NIL oObj := ::oControlItem:oObj ENDIF IF ValType( oObj ) <> 'O' RETU NIL ENDIF oObj:CoorsUpdate() SetWindowPos( oObj:hWnd, HWND_TOP ,; oObj:nTop, oObj:nLeft ,; oObj:nWidth, oObj:nHeight ) if ::lactive oitemact := ::oControlItem ::additem(oitemact:ntop, ...
by Sebastián Almirón
Fri Feb 14, 2014 6:17 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Tree. Intercambio de posiciones
Replies: 5
Views: 665

Sr. Antonio - FIVEWIN BUG

... oDlg ; ACTION ( msginfo("click on dialog")) @ 4, 2 BUTTON "&Bye!" OF oDlg ACTION oDlg:End() ACTIVATE DIALOG oDlg on init(setwindowpos( oDlg:hWnd, -1, 0, 0, 0, 0, 3 ) ) nowait return(.t.)
by MGA
Tue Nov 13, 2012 5:01 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Sr. Antonio - FIVEWIN BUG
Replies: 5
Views: 1855

Re: traer ventana al primer plano

También puedes intentar SetWindowPos(hWnd,-1,,,,,8)

Debería funcionar.

Aqui tienes unos enlaces: http://winapi.freetechsecrets.com/win32 ... dowPos.htm
y http://www.pinvoke.net/default.aspx/cor ... owPos.html aunque no son de FiveWin, esa funcion trabaja igual en FW.
by antolin
Fri May 11, 2012 10:04 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: traer ventana al primer plano
Replies: 5
Views: 795

Re: Question about control tab order

George, You may use SetWindowPos() to change the tab order of a control: SetWindowPos( hWndControl, hWndControlInsertAfter, 0, 0, 0, 0, nOr( SWP_NOMOVE, SWP_NOSIZE ) ) i.e., if you have two GETs, oGet1 and oGet2, then: SetWindowPos( ...
by Antonio Linares
Fri May 04, 2012 6:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Question about control tab order
Replies: 4
Views: 956

Re: TGET, ACTION, VALID problem?

... = ( ::nWidth * 1.167 ) - ::nHeight+iif(::nWidth>200,1,2) // By Dutch endif /* // We force a WM_NCCALCSIZE msg to be sent to the GET SetWindowPos( ::hWnd, 0, 0, 0, 0, 0,; nOr( SWP_NOMOVE, SWP_NOSIZE, SWP_NOZORDER, SWP_FRAMECHANGED ) ) */ endif return nil Regards, Dutch
by dutch
Fri Mar 26, 2010 6:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TGET, ACTION, VALID problem?
Replies: 2
Views: 630

Re: EXE calling EXE - focus problem

Hello Antonio,
thank you.
I tried your suggestion but I feel that double click is executed before ownd:disable().
This does not work. As a workaround I use: SetWindowPos( ::hWnd, -1, 0, 0, 0, 0, 3 )
in the “called” programs.

Best regards,
Otto
by Otto
Fri Nov 27, 2009 9:59 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: EXE calling EXE - focus problem
Replies: 2
Views: 456

Re: FWH/xHarbour Menus

... ::cResName ) ::nWidth = ::nWidth * SCALE_FACTOR hCtrl = GetWindow( ::hWnd, GW_CHILD ) if hCtrl != 0 do while ! lEnd aRect = GetCoors( hCtrl ) SetWindowPos( hCtrl, 0, aRect[ 1 ], aRect[ 2 ] * SCALE_FACTOR,; ( aRect[ 4 ] - aRect[ 2 ] ) * SCALE_FACTOR,; aRect[ 3 ] - aRect[ 1 ], nOr( SWP_NOZORDER,; ...
by E. Bartzokas
Mon May 25, 2009 3:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH/xHarbour Menus
Replies: 20
Views: 7785

Abrir un dialogo en una posic

Estoy intnetando abrir un dialogo creado desde recursos en una posición determinada de la pantalla. Actualmente lo consigo mandando la instruccion SetWindowPos( ::oToolTip:hWnd, , aPoint[ 1 ], aPoint[ 2 ] - ::oToolTip:nWidth(), ::oToolTip:nWidth(), ::oToolTip:nHeight() ) pero se ve un feo parpadeo ...
by manuelcalerosolis
Wed Feb 18, 2009 8:07 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Abrir un dialogo en una posic
Replies: 5
Views: 617

Re: Siempre "on top"

Muchas gracias a los dos. Alvaro static ontop:=.t. SetWindowPos( oWnd:hWnd, if( ontop , HWND_TOPMOST , HWND_NOTOPMOST ) , 0, 0, 0, 0, ; nOr( SWP_NOMOVE, SWP_NOSIZE, SWP_SHOWWINDOW, SWP_NOACTIVATE ) ) ontop:=!ontop #define SWP_NOSIZE 0x0001 #define ...
by alvaro533
Sat Jan 24, 2009 11:46 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Siempre "on top"
Replies: 4
Views: 654

Re: Siempre "on top"

alvaro,

SetWindowPos( oWnd:hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE |;
SWP_NOSIZE |;
SWP_SHOWWINDOW |;
SWP_NOACTIVATE )
by wmormar
Sat Jan 24, 2009 4:28 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Siempre "on top"
Replies: 4
Views: 654

Enrico,

I used SetWindowPos() this way :
Code: Select all  Expand view
SetWindowPos(wWnd,-1,US->UWORDTOP,US->UWORDLEF,US->UWORDWID,US->UWORDHEI,3)

Thanks.
by driessen
Tue Dec 02, 2008 8:29 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Defining position and size of Word-window
Replies: 11
Views: 2100
PreviousNext

Return to advanced search