Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hiding Seperator Bars when Surrounding Bars not
Message
 
À
19/03/2003 16:35:57
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00767824
Message ID:
00768603
Vues:
19
Gary,

The current version of the MM VFP doesn't support this, however, try adding the following code to the CSeparatorBar.Show() method:
LPARAMETERS nStyle

LOCAL llHideBar, loPrevBar

DODEFAULT(nStyle)

*--- If the bar is first in the list, hide it
IF this.nbarnumber = 1
	llHideBar = .T.
ELSE
	*--- If the previous bar is a separator, hide it
	loPrevBar = this.Parent.Get(this.nbarnumber-1)
	IF LOWER(loPrevBar.Class) = "cseparatorbar"
		llHideBar = .T.
	ENDIF
ENDIF

IF llHideBar
	this.Hide()
ENDIF
Let me know how this works for you.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform