Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - [QUESTION]HeightFormula
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[QUESTION]HeightFormula

 Post Reply Post Reply
Author
Message
Fabian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 22 November 2004
Location: Switzerland
Status: Offline
Points: 336
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fabian Quote  Post ReplyReply Direct Link To This Post Topic: [QUESTION]HeightFormula
    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
Back to Top
Fabian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 22 November 2004
Location: Switzerland
Status: Offline
Points: 336
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fabian Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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);
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.