In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Codejack and Office2007Theme

Xailer professional forum in English
Nick Hilder
Mensajes: 328
Registrado: Mar Nov 21, 2006 2:10 am

Codejack and Office2007Theme

Mensaje por Nick Hilder »

Hi Jose
In the calendar control you can use SetTheme()
You can set it to Office2007Theme like this
oTheme := CreateObject( "CodeJock.CalendarThemeOffice2007.11.2.2" )
::oCalendarWnd:SetTheme(oTheme)
Problem is, if I have XP themes turned on in Xailer it causes my app to
crash with this
********************************
#2: Unrecoverable error 9011:
#3: hb_xfree called with a NULL pointer
#4:
#5: Called from OPENTHEMEDATA(0)
#6:
#7: Called from TCALENDARCONTROL:SETTHEME(496)
#8:
#9: Called from TFORM1:LOADCALENDAR(66)
#10:
#11: Called from TFORM1:ONINITIALIZE(0)
#12:
#13: Called from TFORM1:NEW(183)
#14:
**********************************
If I turn off XP Themes in Xailer I don't get the error but it never
switches themes either.
Regards Nick
Responder