Hello,
Issuing a window:center method it doesn't center the window correctly. It seems to work only correct with dialogs.
Is is a bug, anyone has some work around ?
Antonio
ACTIVATE WINDOW oWnd ;
ON INIT oWnd:Center()
#include "FiveWin.ch"
function Main()
local oWnd
DEFINE WINDOW oWnd TITLE "Center test"
ACTIVATE WINDOW oWnd ;
ON INIT BuildDlg( oWnd )
return nil
function BuildDlg( oWnd )
local oDlg
DEFINE DIALOG oDlg TITLE "Test"
ACTIVATE DIALOG oDlg ;
ON INIT oDlg:Center( oWnd )
return nil
#include "FiveWin.ch"
function Main()
local oWnd
DEFINE WINDOW oWnd TITLE "Center test" MDI
ACTIVATE WINDOW oWnd ;
ON INIT BuildChild( oWnd )
return nil
function BuildChild( oWnd )
local oChild
DEFINE WINDOW oChild TITLE "Test" MDICHILD
WndTop( oChild:hWnd, oWnd:nHeight / 7 )
WndLeft( oChild:hWnd, oWnd:nWidth / 10 )
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 64 guests