Disable Window Close Button

Disable Window Close Button

Postby Colin Haig » Tue Sep 23, 2008 1:27 am

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

Colin
Colin Haig
 
Posts: 310
Joined: Mon Oct 10, 2005 5:10 am

Re: Disable Window Close Button

Postby anserkk » Tue Sep 23, 2008 4: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

Code: Select all  Expand view
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
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 70 guests