<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : ReadOnly</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : ReadOnly]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 30 May 2026 19:03:40 +0000</pubDate>
  <lastBuildDate>Sat, 04 Apr 2009 14:04:29 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=13842</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[ReadOnly : Right - I told you that you have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13842&amp;PID=47580&amp;title=readonly#47580</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13842<br /><strong>Posted:</strong> 04 April 2009 at 2:04pm<br /><br />Right - I told you that you have enough already exited features to prevent non-needed actions]]>
   </description>
   <pubDate>Sat, 04 Apr 2009 14:04:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13842&amp;PID=47580&amp;title=readonly#47580</guid>
  </item> 
  <item>
   <title><![CDATA[ReadOnly : Thank you, meanwhile I&amp;#039;ve...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13842&amp;PID=47578&amp;title=readonly#47578</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=66">zaksoft</a><br /><strong>Subject:</strong> 13842<br /><strong>Posted:</strong> 04 April 2009 at 1:55pm<br /><br /><P><FONT size=2>Thank you, meanwhile I've inserted:<BR>CXTPNotifyConnection* ptrCalendarConn = m_ctrlCalendar.GetConnection();</FONT></P><P><FONT size=2>ASSERT(ptrCalendarConn);<BR>m_Sink.Advise(ptrCalendarConn, XTP_NC_CALENDARCONTEXTMENU, &amp;CPlannerPreview::OnEvent_Calendar);<BR>m_Sink.Advise(ptrCalendarConn, XTP_NC_CALENDARLBUTTONDBLCLICK, &amp;CPlannerPreview::OnEvent_Calendar);<BR>m_Sink.Advise(ptrCalendarConn, XTP_NC_CALENDARKEYDOWN, &amp;CPlannerPreview::OnEvent_Calendar);<BR>m_Sink.Advise(ptrCalendarConn, XTP_NC_CALENDAR_IS_EVENT_EDIT_OPERATION_DISABLED, &amp;CPlannerPreview::OnEvent_IsEditActionDisabled);</FONT></P><P><FONT size=2>in calendar (into dialog-derived class) init function</FONT></P><P><FONT size=2>and</FONT></P><P><FONT size=2>void CPlannerPreview::OnEvent_Calendar(XTP_NOTIFY_CODE Event, WPARAM wParam, LPARAM lParam)<BR>{<BR>&nbsp;TRACE( "Do nothing: Event %ld - wParam %ld - lParam %ld\n", (long)Event, (long)wParam, (long)lParam);<BR>}</FONT></P><P><FONT size=2>void CPlannerPreview::OnEvent_IsEditActionDisabled(XTP_NOTIFY_CODE Event, WPARAM wParam, LPARAM lParam)<BR>{ <BR>&nbsp;if ( XTP_NC_CALENDAR_IS_EVENT_EDIT_OPERATION_DISABLED != Event)<BR>&nbsp;{<BR>&nbsp;&nbsp;ASSERT(FALSE);<BR>&nbsp;&nbsp;return;<BR>&nbsp;}<BR>&nbsp;XTP_EVENT_EDIT_OPERATION_PARAMS* pOPparams = (XTP_EVENT_EDIT_OPERATION_PARAMS*)wParam;<BR>&nbsp;BOOL* pbCancel = (BOOL*)lParam;<BR>&nbsp;ASSERT(pbCancel);</FONT></P><P><FONT size=2>&nbsp;// check is already canceled/handled<BR>&nbsp;if ( !pOPparams || !pbCancel || *pbCancel)<BR>&nbsp;{<BR>&nbsp;&nbsp;return;<BR>&nbsp;}<BR>&nbsp;*pbCancel = TRUE;<BR>}</FONT></P><P><FONT size=2>So no action can be taken.<BR></FONT></P><DIV><FONT size=2></FONT>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 04 Apr 2009 13:55:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13842&amp;PID=47578&amp;title=readonly#47578</guid>
  </item> 
  <item>
   <title><![CDATA[ReadOnly : example - CalendarDemo MFC app...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13842&amp;PID=47574&amp;title=readonly#47574</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13842<br /><strong>Posted:</strong> 04 April 2009 at 10:27am<br /><br />example - CalendarDemo MFC app - handler for context menu create and call internal dialog - but you can use your own dialog here<FONT size=2><P></FONT><FONT color=#0000ff size=2>case</FONT><FONT size=2> ID_POPUP_PROPERTIES:</P><P>{</P><P>ASSERT(hitInfo.pViewEvent);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (hitInfo.pViewEvent)</P><P>{</P><P>CXTPCalendarEvent* pEvent = hitInfo.pViewEvent-&gt;GetEvent();</P><P>CXTPCalendarEventPtr ptrEvent = pEvent-&gt;CloneEvent();</P><P>CXTPCalendarControl::CUpdateContext updateContext(&amp;GetCalendarCtrl(), xtpCalendarUpdateLayout|xtpCalendarUpdateRedraw);</P><P>CXTPCalendarEventPropertiesDlg dlg(&amp;GetCalendarCtrl(), FALSE, </FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>, ptrEvent);</P><P>dlg.m_bOccurrence = TRUE;</P><P>dlg.DoModal();</P><P>} </P><P>}</P><DIV></DIV><P>&nbsp;</P><P>BTW- I add public member of <FONT size=2>CXTPCalendarControl - </FONT><FONT size=2>BOOL m_bReadOnlyMode;</P><DIV></DIV>and property in ActiveX ReadOnlyMode user can get and set on app level</FONT></FONT>]]>
   </description>
   <pubDate>Sat, 04 Apr 2009 10:27:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13842&amp;PID=47574&amp;title=readonly#47574</guid>
  </item> 
  <item>
   <title><![CDATA[ReadOnly : Double click open  CXTPCalendarOccurSeriesChooseDlg...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13842&amp;PID=47573&amp;title=readonly#47573</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=66">zaksoft</a><br /><strong>Subject:</strong> 13842<br /><strong>Posted:</strong> 04 April 2009 at 10:14am<br /><br />Double click open <FONT color=#010001 size=2><FONT color=#010001 size=2><P>CXTPCalendarOccurSeriesChooseDlg or <FONT color=#010001 size=2><FONT color=#010001 size=2>CXTPCalendarEventPropertiesDlg</P></FONT></FONT><DIV></DIV><DIV></DIV>Can you please tell me how I can override this ?<DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>TIA</DIV></FONT></FONT>]]>
   </description>
   <pubDate>Sat, 04 Apr 2009 10:14:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13842&amp;PID=47573&amp;title=readonly#47573</guid>
  </item> 
  <item>
   <title><![CDATA[ReadOnly : Double click call Application...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13842&amp;PID=47572&amp;title=readonly#47572</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13842<br /><strong>Posted:</strong> 04 April 2009 at 9:52am<br /><br /><P>Double click call Application event editor form (not part of control itself) - you can disable this call as other context-menu related call for your own read-only mode.</P><P>I think that we can add ReadOnly flag in future version - may be even on event level</P>]]>
   </description>
   <pubDate>Sat, 04 Apr 2009 09:52:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13842&amp;PID=47572&amp;title=readonly#47572</guid>
  </item> 
  <item>
   <title><![CDATA[ReadOnly : Sorry, I dont understand your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13842&amp;PID=47564&amp;title=readonly#47564</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=66">zaksoft</a><br /><strong>Subject:</strong> 13842<br /><strong>Posted:</strong> 04 April 2009 at 1:55am<br /><br />Sorry, I dont understand your answer.<DIV>&nbsp;</DIV><DIV>I've already disabled all edit option available, but doubleclick still open the event detail, I can move, resize&nbsp;and drag&amp;drop to another date..</DIV><DIV>&nbsp;</DIV><FONT color=#010001 size=2><FONT color=#010001 size=2><P>It is possible to add a SetReadOnly() in future version (I've tested EnableWindow(FALSE) but many functions are not working ) ?</P><DIV></DIV><P>TIA.</FONT></FONT></P>]]>
   </description>
   <pubDate>Sat, 04 Apr 2009 01:55:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13842&amp;PID=47564&amp;title=readonly#47564</guid>
  </item> 
  <item>
   <title><![CDATA[ReadOnly : Edit event in the case of disable...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13842&amp;PID=47560&amp;title=readonly#47560</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13842<br /><strong>Posted:</strong> 03 April 2009 at 6:42pm<br /><br />Edit event in the case of disable in-place editing possible only using Event Editor - call by Context Menu which app can control with own logic or mouse click - you can also disable with Advanced Options]]>
   </description>
   <pubDate>Fri, 03 Apr 2009 18:42:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13842&amp;PID=47560&amp;title=readonly#47560</guid>
  </item> 
  <item>
   <title><![CDATA[ReadOnly : How can I set ReadOnly mode ?  In...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13842&amp;PID=47257&amp;title=readonly#47257</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=66">zaksoft</a><br /><strong>Subject:</strong> 13842<br /><strong>Posted:</strong> 29 March 2009 at 4:32am<br /><br />How can I set ReadOnly mode ?<DIV>&nbsp;</DIV><DIV>In some cases (like preview of appointments for customers taken automaticalli from database and build from custom recordset) I do not want the user to edit or add, just see and (eventually) print.</DIV><DIV>&nbsp;</DIV><DIV>I've used <FONT color=#010001 size=2><FONT color=#010001 size=2>bEnableInPlaceCreateEvent to prevent adding apps, but I don't know how to prevent moving, change or delete them.</FONT></FONT></DIV><DIV><FONT color=#010001 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#010001 size=2>TIA</FONT></DIV>]]>
   </description>
   <pubDate>Sun, 29 Mar 2009 04:32:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13842&amp;PID=47257&amp;title=readonly#47257</guid>
  </item> 
 </channel>
</rss>