Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ParameterDescription
MonthThe month clicked
WeekThe week number cliickedclicked
DayOfWeekThe day of week clicked
DateThe date clicked
PointThe mouse cursor location
ButtonThe mouse button used to click
ShiftIndicates whether or not the SHIFT key is down
ControlIndicates whether or not the CTRL key is down

...

When Month and Week have values but DayOfWeek and Date are empty, then the user has clicked on a week number along the left side of the month. Note: this will be the case even if ShowWeekNumbers is off.

Day of Week:

When Month and DayOfWeek have values but Week and Date are empty, then the user has clicked on a day of the week indicator just below the month header.

...

The remaining parameters identify the state of various objects when the click occured. The Point parameter identifies the location of the mouse cursor relative to the control's upper left hand corner. The Button parameter names the mouse button used to execute the click and will be "Left", "Middle", or "Right". TheShift and Control parameters indicate whether or not the SHIFT or CTRL keys respectively where pressed during the click. Is such cases, they will be set to 1.'

Example

Code Block
 TransferTransfer Param1 to Month 
Transfer Param2 to Week 
Transfer Param3 to DayOfWeek 
Transfer Param4 to Date 
Transfer Param5 to Point 
Transfer Param6 to Button 
Transfer Param7 to Shift 
Transfer Param8 to Ctrl 

 // Did the user double click a date? 
DateClicked = (Month NE "" AND Week NE "" AND DayOfWeek NE "" AND Date NE "") 

 // Did the user double click only a week number? 
WeekNumberClicked = (Month NE "" AND Week NE "" AND DayOfWeek EQ "" AND Date EQ "") 

 // Did the user double click only a day of week? 
DayOfWeekClicked = (Month NE "" AND Week EQ "" AND DayOfWeek NE "" AND Date EQ "") 

 // Did the user double click only a month 
MonthClicked = (Month NE "" AND Week EQ "" AND DayOfWeek EQ "" AND Date EQ "") 

 // Did the user double click on an empty portion of the control 
ControlClicked = (Month EQ "" AND Week EQ "" AND DayOfWeek EQ "" AND Date EQ "")

See Also

OnClick