Página 1 de 1

Codejock ActiveX Calendar Constants

Publicado: Lun Mar 31, 2008 12:31 am
por Nick Hilder
Hi Xailer Team
In the Code Jock Calendar control there is a HitTest method. Using this and
the mouse down I can tell what the user clicked on.
The HitTest object has a property called nHitCode, I can use this in a CASE
..
Like this
CASE nHitCode == xtpCalendarHitTestDayArea
::oListBox1:AddItem("You clicked on the DayArea" +
Str(oCalendarHitTestInfo:Hitcode))
CASE nHitCode == xtpCalendarHitTestDayHeader
::oListBox1:AddItem("You clicked on the DayHeader" +
Str(oCalendarHitTestInfo:Hitcode))
The problem I have is that nHitCode is quite often not correct.
For example when I click on the calendar cell I get number 8193 from the
nHitCode. I would have expected it to be this
xtpCalendarHitTestDayViewCell => 8192
It one number off. (not always though) Some work, some don't
If you think this could be something Xailer/Xharbour related I can send a
small self contained sample.
BTW, I have checked the type lib and all the constants came through
correctly.
Nick