/***************************************************
OnDClicked - overloaded CUGCellType::OnDClicked
	This function is called when the left mouse 
	button is double clicked over a cell.
	The drop list cell type determines if the 
	user double clicks on the area that is covered
	by the drop list button, if this is the case than
	this event is passed on to the OnLClicked.

    **See CUGCellType::OnDClicked for more details
	about this function

Params:
	col - column that was clicked in
	row - row that was clicked in
	rect - rectangle of the cell that was clicked in
	point - point where the mouse was clicked
Return:
	TRUE - if the event was processed
	FALSE - if the event was not
****************************************************/
BOOL CUGDropListType::OnDClicked(int col,long row,RECT *rect,POINT *point)
{
	if(point->x > (rect->right - m_btnWidth))
		return OnLClicked(col,row,1,rect,point);
	
	return FALSE;
}
Exemple #2
0
/***************************************************
OnDClicked - overloaded CUGCellType::OnDClicked
	Calls the OnLClicked function

    **See CUGCellType::OnDClicked for more details
	about this function
****************************************************/
BOOL CUGSpinButtonType::OnDClicked(int col,long row,RECT *rect,POINT *point){
	return OnLClicked(col,row,1,rect,point);
}
Exemple #3
0
/***************************************************
OnDClicked  - overloaded CUGCellType::OnDClicked
	The check box does not have a special behaviour
	when it comes to the double click event.  It does
	however pass handling of this event to the
	OnLClicked virtual function.

    **See CUGCellType::OnDClicked for more details
	about this function

Params:
	col - column that was clicked in
	row - row that was clicked in
	rect - rectangle of the cell that was clicked in
	point - point where the mouse was clicked
Return:
	TRUE - if the event was processed
	FALSE - if the event was not
***************************************************/
BOOL CUGCheckBoxType::OnDClicked(int col,long row,RECT *rect,POINT *point)
{
	return OnLClicked(col,row,1,rect,point);
}
Exemple #4
0
/***************************************************
OnDClicked - overloaded CUGCellType::OnDClicked
	Allows the progress bars value to be set interactivly
	if SetCanAdjust() is set to TRUE.
	Calls from this function are just passed over to
	the OnLClicked function, therefore double clicks
	are processed the same as a single left click.

    **See CUGCellType::OnDClicked for more details
	about this function
****************************************************/
BOOL CUGAdvProgressType::OnDClicked(int col,long row,RECT *rect,POINT *point){
	return OnLClicked(col, row, TRUE, rect, point);
}