Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CtSchedule how to clear the new bar?
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
CtSchedule how to clear the new bar?
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01592781
Message ID:
01592781
Views:
43
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
Reply
Map
View

Click here to load this message in the networking platform