_ResizeControls() and CXTPCalendarEvent |
Post Reply |
Author | |
zitz
Senior Member Joined: 05 October 2008 Status: Offline Points: 112 |
Post Options
Thanks(0)
Posted: 18 February 2009 at 12:53pm |
Hello. I use Xtreme ToolkitPro v13.0.0
void CXTPCalendarControlView::_ResizeControls() If m_pScrollBar is NULL CalendarCtrl not move to his place, I wanted to overload _ResizeControls, but m_pScrollBar is private member :(
Why do not you make the storage of records (CalendarEvents) in the CalendarControl like in ReportControl? Now is to safety and this is TOO SLOW... Like ReportControl I want: virtual CXTPCalendarEvent* AddEvent(CXTPCalendarEvent* pEvent); (virtual CXTPReportRecord* AddRecord(CXTPReportRecord* pRecord);) CXTPCalendarEvents* GetEvents() const; (CXTPReportRecords* GetRecords() const;) I need BOOL SetVisible(BOOL bVisible) and BOOL SetLocked(BOOL bLocked) at CXTPCalendarEvent I very need virtual void GetItemMetrics(XTP_REPORTRECORDITEM_DRAWARGS* pDrawArgs, XTP_REPORTRECORDITEM_METRICS* pItemMetrics) at CXTPCalendarEvent. (for example, you use virtual void GetEventColors at CXTPCalendarThemeOffice2007::CTODayViewEvent_SingleDay for this) Now I have to override 6 classes!!!!!!!!! class CTODay_MultiDay : public CXTPCalendarThemeOffice2007::CTODayViewEvent_MultiDay class CTODay_SingleDay : public CXTPCalendarThemeOffice2007::CTODayViewEvent_SingleDay class CTOMonth_MultiDay : public CXTPCalendarThemeOffice2007::CTOMonthViewEvent_MultiDay class CTOMonth_SingleDay : public CXTPCalendarThemeOffice2007::CTOMonthViewEvent_SingleDay class CTOWeek_MultiDay : public CXTPCalendarThemeOffice2007::CTOWeekViewEvent_MultiDay class CTOWeek_SingleDay : public CXTPCalendarThemeOffice2007::CTOWeekViewEvent_SingleDay I dont use m_Sink.Advise becouse is TOO SLOW! Why you not add 1 class for all views? Like CXTPReportRow? I need void SelectDate( COleDateTime dtFrom, COleDateTime dtTo ) and void GetDate( COleDateTime* dtFrom, COleDateTime* dtTo ) methods at CXTPCalendarControl. I dont use CalendarController. a great problem to write a own drag-n-drop in calendar control... For example, how can i disable copy feature at drag-n-drop (ctrl+move event)? And how to do own copy feature when i drop my data to calendar? |
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
I already answer somethere about this bug - it was fixed Feb, 25 and I publish the fix for MFC source - same as in SVN:
add following lines as end of function void CXTPCalendarControlView::_ResizeControls()
...............................................................................................................................
else //no scrollbar
{ if (bRightToLeft)GetCalendarCtrl().MoveWindow(nScroll, nCalendarY, cx - nScroll, max(0, cy - nCalendarY)); elseGetCalendarCtrl().MoveWindow(0, nCalendarY, cx - nScroll, max(0, cy - nCalendarY)); } } } |
|
zitz
Senior Member Joined: 05 October 2008 Status: Offline Points: 112 |
Post Options
Thanks(0)
|
What about this?
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |