>>Using a browse window with the "window" clause.
>>
>>browse fields window TemplateWin IN WINDOW apptoplevelform
>>
>>TemplateWin has been defined to be closable=.f. and controlbox=.f., yet the close button (X in upper right hand corner) is still enabled. Does anyone know how I can get the close button to be disabled to not visible for a browse window with a "window" clause?
>>
>>Thanks - Brenda
>Are you in 2.6?, Windows don't have properties.
>
>Anyway, if you DEFINE WINDOW ...... NOCLOSE and then BROWSE WINDOW it should >work.
I am using 5.0, but always ask Browse window question in the 2.6 section. Actually there is a little more to the issue:
DEFINE Window TemplateWin From 0,0 size 3,10 System Name oTemplateWin noclose
WITH oTemplateWin
.Width=742
.Height=332
.borderstyle=3
.caption="[ENTER] or [RightMouse] to SELECT - [ESC] to CANCEL"
.FontName="Arial"
.fontsize=8
.controlbox=.f.
.movable=.t.
.closable=.f.
.minbutton=.f.
.maxbutton=.t.
.windowtype=1
ENDWITH
BROWSE fields &flds normal noappend nodelete noedit nomenu ;
window TemplateWin IN WINDOW apptoplevelform
As I copied this I realize that the problem is the "normal" in the browse. It seems to override "Define Window ... noclose" and the "otemplatewin.closable=.f.".
Oh well, will send this along anyway. Maybe you will find it useful.
thanks
Brenda
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only