DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

calendar dialog box

Hi there!

I'm trying to implement a dialog box where the user can insert start and stop date (and, eventually, time) for building a report in semi-automatic way. So, the dialog box has to pass data to the calling script.
I was able to insert the ActiveX control MSCAL.Calendar.7 in the dialog box, but I cannot find the way of passing any properties (such as value, year, nor day) to the calling script.
The help topic "Transferring User Dialog Box Entries to DIAdem" doesn't reference to the ActiveX control and I can't find examples about that. Any ideas?

Thank you!

Andrea


0 Kudos
Message 1 of 3
(4,178 Views)
Hello Andrea!
 
You have to set the ActiveX properties in your dialog initialization code. You can access them with the syntax <controlname>.X.<propertyname> with '<controlname>' the name of the SUD control and '<propertyname>' the name of the AxtiveX property.
 
Examples:
MyDateTimePicker.X.Value = now

MyDateTimePicker.X.Value = R1
 
To use ActiveX controls can be verry nice but sometimes also verry frustrating because you have to be shure that they are installed on every client!
 
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 2 of 3
(4,171 Views)
Thank you very much!
0 Kudos
Message 3 of 3
(4,149 Views)