... 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 ...
... 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 ...
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( ...
... = ( ::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
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.
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 ...