Página 1 de 1

Codejack and Office2007Theme

Publicado: Mar Abr 01, 2008 1:18 am
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

Codejack and Office2007Theme

Publicado: Mar Abr 01, 2008 2:22 am
por notengo
Nick,
> 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)
I can only guess but check if the oTheme object has a "Name" property or
alike, then try: ::oCalendarWnd:SetTheme( oTheme:Name ).
Regards,
José Lalí­n

Codejack and Office2007Theme

Publicado: Mar Abr 01, 2008 2:22 am
por notengo
Nick,
> 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)
I can only guess but check if the oTheme object has a "Name" property or
alike, then try: ::oCalendarWnd:SetTheme( oTheme:Name ).
Regards,
José Lalí­n

Codejack and Office2007Theme

Publicado: Mar Abr 01, 2008 5:05 am
por Nick Hilder
Hi Jose
Thanks for the reply. Should everything basically work with this activex
stuff., or is it a case of some things will and something won't
Here's the class details for the Theme
CalendarThemeOffice2007 Object MembersPublic Methods
DoPropExchange Exchanges the Office2007 theme colors tofrom a
PropExchange object.
RefreshMetrics Refresh the visual metrics of the Calendar.
SetCustomIcons Initialize custom icons collection from the standard
image list object.
Public Properties
BaseColor Base color used in the Office 2007 theme.
BaseFont Base font used in the calendar.
BaseFontBold Base font used in the calendar for bold text.
CustomIcons Custom icons collection.
DayView Interface for all the colors used to draw the calendar when
in day view and the theme is Office 2007.
Event Base properties used for all event objects for the Office 2007
theme.
Header Base color and font properties used for all header objects for
the Office 2007 theme.
ImageList Image collection used to set user bitmaps to customize some
Calendar elements which are drawn using bitmap patterns.
MonthView Interface for all the colors used to draw the calendar when
in month view and the theme is Office 2007.
WeekView Interface for all the colors used to draw the calendar when
in week view and the theme is Office 2007.
"José Lalín" <notengo@correo.com> wrote in message
news:[email=47f18088@ozsrv2.ozlan.local...]47f18088@ozsrv2.ozlan.local...[/email]
>
> Nick,
>
>> 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)
>
> I can only guess but check if the oTheme object has a "Name" property or
> alike, then try: ::oCalendarWnd:SetTheme( oTheme:Name ).
>
> Regards,
> José Lalín


Attached files

Codejack and Office2007Theme

Publicado: Mar Abr 01, 2008 5:05 am
por Nick Hilder
Hi Jose
Thanks for the reply. Should everything basically work with this activex
stuff., or is it a case of some things will and something won't
Here's the class details for the Theme
CalendarThemeOffice2007 Object MembersPublic Methods
DoPropExchange Exchanges the Office2007 theme colors tofrom a
PropExchange object.
RefreshMetrics Refresh the visual metrics of the Calendar.
SetCustomIcons Initialize custom icons collection from the standard
image list object.
Public Properties
BaseColor Base color used in the Office 2007 theme.
BaseFont Base font used in the calendar.
BaseFontBold Base font used in the calendar for bold text.
CustomIcons Custom icons collection.
DayView Interface for all the colors used to draw the calendar when
in day view and the theme is Office 2007.
Event Base properties used for all event objects for the Office 2007
theme.
Header Base color and font properties used for all header objects for
the Office 2007 theme.
ImageList Image collection used to set user bitmaps to customize some
Calendar elements which are drawn using bitmap patterns.
MonthView Interface for all the colors used to draw the calendar when
in month view and the theme is Office 2007.
WeekView Interface for all the colors used to draw the calendar when
in week view and the theme is Office 2007.
"José Lalín" <notengo@correo.com> wrote in message
news:[email=47f18088@ozsrv2.ozlan.local...]47f18088@ozsrv2.ozlan.local...[/email]
>
> Nick,
>
>> 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)
>
> I can only guess but check if the oTheme object has a "Name" property or
> alike, then try: ::oCalendarWnd:SetTheme( oTheme:Name ).
>
> Regards,
> José Lalín


Attached files