Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CtSchedule how to clear the new bar?
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
CtSchedule how to clear the new bar?
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01592781
Message ID:
01592781
Vues:
45
Hi everybody,

When I click on the schedule and draw a new bar, is there a way to remove this visual appearance?

I've tried in the BarAdded event
if m.lnRetVal = 2 && Cancel
			    NODEFAULT
			    loCT.DeleteColorBar(m.nIndex)
				return .f.
			endif
and it doesn't work. I still see this red bar on the Schedule. The only way is to run a method to recreate the schedule, but this doesn't seem efficient.

Does anyone know how to cancel this newly added bar and remove it from the schedule?


Thanks in advance.


UPDATE. Never mind. It's funny that writing a message forces you to review the documentation. I needed to use DeleteTimeBar instead. It worked fine.
If it's not broken, fix it until it is.


My Blog
Répondre
Fil
Voir

Click here to load this message in the networking platform