LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

activeX event

Solved!
Go to solution

Hi,
I'm trying to use a calendar ActiveX http://shareme.com/details/calendar-activex-control-sdk.html

 

In the help :

"

OnDayClick


  Occurs when you click the day box.
void Calendar1_OnDayClick(ByVal iYear As Integer, ByVal iMonth As Integer, ByVal iDay As Integer, ByVal strText As String)

 

Parameter
iYear - the year you selected.
iMonth - the month you selected.
iDay - the day you selected.
strText - the day text if available.

Return Value

 No return value.  

Example

   

Visual Basic Syntax
Private Sub Calendar1_OnDayClick(ByVal iYear As Integer, ByVal iMonth As Integer, ByVal iDay As Integer, ByVal strText As String)
txtCurDay = iDay
txtDayText = strText
End Sub

 

 

 "

But I really have no idea to implement this !
I just want to have the date when I click on the calendar !

Any Idea ?

Best regards,

V-F
0 Kudos
Message 1 of 10
(3,786 Views)

As a starting point you can give a look to this thread (there are examples for the MonthView calendar ActiveX)

 

http://forums.ni.com/ni/board/message?board.id=170&thread.id=327119&view=by_date_ascending&page=1

 

Marco

0 Kudos
Message 2 of 10
(3,775 Views)

An example on how to get the selected data from the control:

 

 monthdate.PNG

0 Kudos
Message 3 of 10
(3,769 Views)

Hi all,

thanks for your answer.

If i chosed this activeX, it is not a hazardous choice. This calendar has options that a classic month calendar doesn't have.

 

My question is how to use THIS ActiveX, and not an other solution.

 

Thanks.

V-F
0 Kudos
Message 4 of 10
(3,763 Views)

Hi ramses64,

  Before using that activex control you need to activate it..For that you need to buy it..

 

 

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 5 of 10
(3,756 Views)

Are you sure ?
There is a pop up which says it is a demo version, and I think that I can test it before purchasing !

Best regards,

V-F
0 Kudos
Message 6 of 10
(3,754 Views)

Hi,

 Have you put the activex control on the front panel...?

 

 

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 7 of 10
(3,747 Views)
Hi,
yes, of course, and I worked with it, but no idea how to read the selected data.
V-F
0 Kudos
Message 8 of 10
(3,742 Views)
Solution
Accepted by topic author ramses64

I found the solution with callback event.
Labview is fantastic... 🙂

 

Thanks to all.

V-F
0 Kudos
Message 9 of 10
(3,728 Views)

Hi ramses64,

  I think you have proved once again... :smileyvery-happy:.       

  BTW please post your vi.

 

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 10 of 10
(3,716 Views)