How can I CENTRE my main application window ?

Post Reply
Ollie
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

How can I CENTRE my main application window ?

Post by Ollie »

How can I CENTRE my main application window ?

CENTER is not allowed in the command

DEFINE WINDOW Win_Main FROM 0, 0 TO 600, 800 PIXEL TITLE 'Hello World' MDI ICON oIcon MENU mainmenu()
DEFINE BUTTONBAR oMain_Toolbar OF Win_Main SIZE 70, 50 3D
DEFINE BUTTON of oMain_Toolbar PROMPT "New Report" TOP ACTION newreport( )
DEFINE BUTTON of oMain_Toolbar PROMPT "Search" TOP ACTION searchreport( )
DEFINE BUTTON of oMain_Toolbar PROMPT "Exit" TOP ACTION quitprog()
ACTIVATE WINDOW Win_Main ON INIT LOGON() VALID lExitAllowed CENTER ???
Many thanks
Ollie.

Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)
Ollie
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Post by Ollie »

Thanks for the response.

Please excuse my ignorance.

Where do I put this?

I put

WNDCENTER( Win_Main:hWnd )

After my ACTIVATE WINDOW statement and it seems to have no effect.
Many thanks
Ollie.

Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)
Ollie
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Post by Ollie »

Super. Thank you very much.
Many thanks
Ollie.

Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)
Post Reply