Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Memory problem BeforeDrawThemeObject?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Memory problem BeforeDrawThemeObject?

 Post Reply Post Reply
Author
Message
dkrapf View Drop Down
Newbie
Newbie


Joined: 04 March 2009
Location: Germany
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote dkrapf Quote  Post ReplyReply Direct Link To This Post Topic: Memory problem BeforeDrawThemeObject?
    Posted: 05 March 2009 at 2:57am
Hi,

my application (build with visual objects 2.8) crashes after a view minutes if I add code for changing some of the cell background colors.
If I remove this code, everything works fine. I'm using the version 13.0 activeX of the calendar control.

Example:

METHOD OLEOBJECT1BeforeDrawThemeObject(eObjType,pCell) class terminplan4
if eObjType = xtpCalendarBeforeDraw_DayViewCell .and. pCell:WorkCell
    self:oDCOLEObject1:Theme:DayView:Day:Group:Cell:WorkCell:BackgroundColor := rgb(200,200,200) // <= application crashes right here :-(
endif   

Any ideas?

Thanks in advance.



Back to Top
skiman View Drop Down
Groupie
Groupie


Joined: 20 December 2008
Location: Belgium
Status: Offline
Points: 88
Post Options Post Options   Thanks (0) Thanks(0)   Quote skiman Quote  Post ReplyReply Direct Link To This Post Posted: 06 March 2009 at 10:07am

Hi,

Is the result of your rgb(xxx,xxx,xxx) function the correct value type?

Regards,

Chris

ABO Service
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.156 seconds.