Print Page | Close Window

[QUESTION]HeightFormula

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=17970
Printed Date: 18 July 2025 at 3:38pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [QUESTION]HeightFormula
Posted By: Fabian
Subject: [QUESTION]HeightFormula
Date Posted: 28 February 2011 at 9:51am
Hi,
 
With objThemeOffice2007.DayView.Event.HeightFormula
  Height=FontHeight * .Multiplier / .Divisor + .Constant
End Width
 
With this Formula one should size the height of an event.
 
But I do not know which Font the control use to measure the FontHeight. An event can have 3 different fonts (Subject, Location, Body)?
 
Thanks a lot
Fabian


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6



Replies:
Posted By: Fabian
Date Posted: 02 March 2011 at 7:15am

Hi,

It seems, that nobody at CJ finds the time to answer this simple question nor do I find an answer searching the help file. Could anybody from the MFC-fraction with source be so kind to look at this
 
Clap Thank you so much!
 
Fabian


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6


Posted By: SuperMario
Date Posted: 25 March 2011 at 10:02am
Internally it looks for largest font and uses it for calculation as you can see below there is 6 to look at for the decision:

CArray<CFont*, CFont*> arFonts;

arFonts.Add(m_fcsetNormal.fcsetSubject.Font());
arFonts.Add(m_fcsetNormal.fcsetLocation.Font());
arFonts.Add(m_fcsetNormal.fcsetStartEnd.Font());

arFonts.Add(m_fcsetSelected.fcsetSubject.Font());
arFonts.Add(m_fcsetSelected.fcsetLocation.Font());
arFonts.Add(m_fcsetSelected.fcsetStartEnd.Font());

int nFontHeightMax = 0;
CXTPCalendarUtils::GetMaxHeightFont(arFonts, pDC, &nFontHeightMax);



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