Disable "X" on dialog

Post Reply
User avatar
Jeff Barnes
Posts: 912
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada
Contact:

Disable "X" on dialog

Post by Jeff Barnes »

Hi Everybody,

How can I disable the "X" on the top of a dialog box?

In FWH I would use "nosysmenu" but it appears I can not do this with FWPPC
Thanks,
Jeff Barnes

(FWH 12.01, xHarbour 1.2.1, Bcc582)
User avatar
anserkk
Posts: 1280
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: Disable "X" on dialog

Post by anserkk »

Dear Mr.Jeff,

Have u tried

Code: Select all

nStyle :=nOR( DS_MODALFRAME, WS_POPUP, WS_CAPTION ) // Removes the ? and x on the dialogue title
DEFINE DIALOG oDlg FROM 10,20 to 27,90 TITLE "My Dialog" STYLE nStyle 
I have not tried this in FWPPC but this works fine in FWH.

Regards

Anser
Post Reply