LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I implement a calendar in labwindows?

Hi.
I need to implement a calendar in my labwindows aplication. I use BCGDateTime activex server and I have obtained a graphical representation of a mounth, days and year. Now i want to get the day manualy using this representation by selecting it.

Please help me.
0 Kudos
Message 1 of 2
(3,260 Views)
Hi,

From looking at BCGSoft's website, it appears as though you can set a callback in CVI and key in on the OnDateChanged event or the OnSelectionChanged event. I'm not very sure which happens first, but you can experiment with both events to see which is fired when you select on a new day in the calendar. Once you have the correct event, the Calendar Control Method IsDaySelected will return a boolean as to whether the day asked is selected or not. Since I do not see a method that allows you to 'Get' the selected day, you might have to just loop through days 1 - 31 and stop looping once you find a day selected. Then, this number should represent the day you clicked on. You might also want to look into the Microsoft Calendar Control, which should be install
ed with Office. This might be a nicer and easier to use solution. Hope this helps!


PS - Here is the link to the BCGSoft Website Link

Jeremy L.
National Instruments
Jeremy L.
National Instruments
Message 2 of 2
(3,260 Views)