Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Selected cell
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Selected cell

 Post Reply Post Reply
Author
Message
WaaZ View Drop Down
Senior Member
Senior Member


Joined: 31 January 2006
Location: United Kingdom
Status: Offline
Points: 103
Post Options Post Options   Thanks (0) Thanks(0)   Quote WaaZ Quote  Post ReplyReply Direct Link To This Post Topic: Selected cell
    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

Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.093 seconds.