Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How disable Closebutton on a Browse window?
Message
 
 
À
27/01/1999 10:49:07
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00180754
Message ID:
00180879
Vues:
17
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform