Print Page | Close Window

Memory problem BeforeDrawThemeObject?

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=13583
Printed Date: 07 October 2024 at 1:19am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Memory problem BeforeDrawThemeObject?
Posted By: dkrapf
Subject: Memory problem BeforeDrawThemeObject?
Date 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.






Replies:
Posted By: skiman
Date 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



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