FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Disable Window Close Button
Posts: 310
Joined: Mon Oct 10, 2005 05:10 AM
Disable Window Close Button
Posted: Tue Sep 23, 2008 01:27 AM

Is it possible to disable the red close button ( X ) on the top right of a window

Colin

Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: Disable Window Close Button
Posted: Tue Sep 23, 2008 04:29 AM
Colin Haig wrote:Is it possible to disable the red close button ( X ) on the top right of a window

Colin



Try this code

nStyle :=nOR( DS_MODALFRAME, WS_POPUP, WS_CAPTION ) // Removes the ? and x on the dialogue title
DEFINE DIALOG oDlg TITLE "Login" style nStyle


Regards

Anser

Continue the discussion