![]() |
[QUESTION]HeightFormula |
Post Reply ![]() |
Author | |
Fabian ![]() Senior Member ![]() ![]() Joined: 22 November 2004 Location: Switzerland Status: Offline Points: 336 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
Fabian ![]() Senior Member ![]() ![]() Joined: 22 November 2004 Location: Switzerland Status: Offline Points: 336 |
![]() ![]() ![]() ![]() ![]() |
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
![]() Fabian
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.3
Platform: Windows 7 (32bit) Language: Visual Basic 6.0 / SP6 |
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
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); |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |