Information générale
Catégorie:
Codage, syntaxe et commandes
>Hi,
>
>every open form is shown in the main menu, window
>menu list and can be selected by the user.
>It does not matter whether the form is visible or not.
>
>Is there a possibility to hide a form in this window
>list? In my case it is a hidden window (noshow) which should
>not show up in this list.
>
>Thanks.
>
>Andreas
Dear Andreas,
it is very easy. Use the VFP built-in system menu Windows pad.
To make unavailabale a window in that list, you must make empty the window caption AND make invisible.
so make a custom cCaption Property into your base form class, and modify the hide and show method code like this:
hide:
if !empty(thisform.caption)
thisform.cCaption=thisform.caption
endif
thisform.caption=""
dodefault()
show:
LPARAMETERS nStyle
if !empty(this.cCaption)
thisform.caption=this.cCaption
endif
if pcount()=1
dodefault(nStyle)
else
dodefault()
endif
that's all!
bb
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement