Print Page | Close Window

Selected cell

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=3934
Printed Date: 24 November 2024 at 5:14pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Selected cell
Posted By: WaaZ
Subject: Selected cell
Date Posted: 03 April 2006 at 12:56pm

Hi,

I have an issue pretty annoying. The following is the senario:

1) I select some cells

2) I start typing something - this automatically creates an appointment.

3) I double click outside.

4) My trigger opens a dialog.. the getSelection returns the date on which I double clicked

The problem is that on the calendar, the cells i doubled click on is not selected. The appointment I created in step 2 is the one selected. The GetSelection actually returns the dateTime of the cell i have doubled click on.

This means the getSelection doesnt reflect what is selected.

I tried to do a getSelection and setSelection right away, followed by a RedrawControl() which doesnt change anything.

Thnk you

WaaZ




Replies:
Posted By: sserge
Date Posted: 07 April 2006 at 6:45am
Hi,

Looks like one need to click really fast to reproduce this problem

For XTP_NC_CALENDARLBUTTONDBLCLICK handler you can call 
 

    GetCalendarCtrl().GetActiveView()->OnLButtonDown(0, CPoint((LPARAM)wParam));
 

before showing your dialog.

--
WBR,
Serge




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net