How can I CENTRE my main application window ?

How can I CENTRE my main application window ?

Postby Ollie » Thu Jul 12, 2007 8:34 pm

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


Postby Ollie » Thu Jul 12, 2007 10:09 pm

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

Postby Enrico Maria Giordano » Thu Jul 12, 2007 10:10 pm

Not after, before.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Ollie » Thu Jul 12, 2007 10:17 pm

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)
Ollie
 
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 32 guests