Print Page | Close Window

Tooltip does not behave properly.

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=14364
Printed Date: 24 November 2024 at 9:17am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Tooltip does not behave properly.
Posted By: KumarCJ
Subject: Tooltip does not behave properly.
Date Posted: 22 May 2009 at 5:57am
Hello Mark,

Please find the attached "ToolTipIssue.JPG".

https://forum.codejock.com/uploads/20090522_055642_ToolTipIssue.rar - uploads/20090522_055642_ToolTipIssue.rar

I have tried with calendar sample "CalendarDemo" with few details mentioned below.

Step 1: Add New Appointment [Should not be All day appointment]
Step 2: Add subject as "11.00 AM - Test Appointment"
Step 3: Point the mouse pointer on added appointment

The tooltip display only "11.00 AM - Test" instead of "11.00 AM - Test Appointment".

I think this is a bug for tooltip.

Please help me out regarding this.

Thanks,
Saket.  



Replies:
Posted By: Marco1
Date Posted: 22 May 2009 at 7:59am
Not exactly the same thing, but something to mention concerning the tooltip:
The position of the tooltip window is wrong. The upper border always corresponds to the upper border of the event.
The problem is that the tooltip is partially hidden by the mouse pointer. The correct behaviour is to display the upper border of the tooltip below the mouse pointer, like in Outlook 2007.



Posted By: mdoubson
Date Posted: 23 May 2009 at 8:19pm
I fixed yesterday in the morning and was surpised that Saket not answered me
       
       
     
     
       
   
I am not sure that second proposal make sense - compare yourself. Bottom position can confuse user while current svn version show exactly which event you hover and can read text - in the case of Custom Tooltip (ver 13.1) you can show here in tooltip even more information and in your own order and choice. I will keep current SVN version.

-------------
Mark Doubson, Ph.D.


Posted By: KumarCJ
Date Posted: 25 May 2009 at 1:20am

Hello Mark,

Thanks for the fix. I replied you on https://support.codejock.com/Issue_View.asp?IssueNbr=21816 - https://support.codejock.com/Issue_View.asp?IssueNbr=21816 .

My reply on Support site is "Ok, will test and let you know the result."

Sat/Sun we are having holidays, so i was not in office.
 
Today morning as soon as come to office I posted the reply on Support site issue number 21816.
 
Today reply[25-May-2009]:
-------------------------------
It will be great help for us, if you can send the file in which you fixed this issue of tooltip issue.

We are releasing our application patch with codejock 13.0 within one or two days, almost all testing of our application are done.

At this point of time we feel it is risky to shift to codejock 13.1, and doing this can slip our deadline for relaese and once again we need to test entire application.

So please send us the modified file, so that we can test only tooltip issue and give the relase on schedule time to our customers.

Thanks,
Saket
https://support.codejock.com/Issue_View.asp?IssueNbr=21816 -


Posted By: mdoubson
Date Posted: 27 May 2009 at 12:00am
The problem was the different behavior in this part in Debug and Release mode (previous snapshots - from Debug mode). I propose some fix and you can try it in updated exe:
 
https://forum.codejock.com/uploads/DemoVersion/CalendarDemoStatic.rar - https://forum.codejock.com/uploads/DemoVersion/CalendarDemoStatic.rar
https://forum.codejock.com/uploads/DemoVersion/OutlookLikeStatic.rar - https://forum.codejock.com/uploads/DemoVersion/OutlookLikeStatic.rar
I also like you to try print / printpreview with small time interval in DayView time scale (5 - 6 min)
 
 


-------------
Mark Doubson, Ph.D.


Posted By: KumarCJ
Date Posted: 27 May 2009 at 2:42am
Ok Mark, I will test it and let you know the result.


Posted By: Marco1
Date Posted: 27 May 2009 at 3:21am
Mark, I tested your two latest samples. Two things:

- Tooltips for AllDayEvents are not working (but as far as I know they are supposed to be - at least if Outlook 2007 is the reference)
- Event tooltips are always partially hidden by the mouse pointer, because the are aligned to the events top position and not to the mouse pointers bottom pos.



Posted By: prashant
Date Posted: 27 May 2009 at 7:31am
Agree with Macro 1

As per standards Tooltip must be at the bottom of the mouse cursor. Present tooltip making event text non visible.


Posted By: mdoubson
Date Posted: 27 May 2009 at 8:03am
AllDayEvents is working for CustomTooltip mode - try CalendarDemoStatic which demonstrate it.
 
Tooltip location follows Window Explorer and Outlook Express pattern (I can attach snapshot but think you seen it)
 
But I can add bool flag TooltipUnderMouse so you can choose to mode (XP standard as I use or your one - not a big deal)


-------------
Mark Doubson, Ph.D.


Posted By: prashant
Date Posted: 27 May 2009 at 9:10am
That is good idea.
I checked toolotip pattern in MS Outlook, MS Word, XP Win Explorer, standard legacy applications

All are displaying tooltip under mouse cursor.



Posted By: mdoubson
Date Posted: 27 May 2009 at 10:11am

Try recent update https://forum.codejock.com/uploads/DemoVersion/CalendarDemoStatic.rar - https://forum.codejock.com/uploads/DemoVersion/CalendarDemoStatic.rar  please.

It use flag CalendarCtrl.TooltipUnderMouse = True
I am surprise but on my XP Windows Explorer and Outlook Express show tooltip on same row - no offset down!


-------------
Mark Doubson, Ph.D.


Posted By: prashant
Date Posted: 28 May 2009 at 7:56am
Mark,

Tested the application, something like this but not the 100%

I guess you hard coded the offset, please add tooltip starting from bottom of the mouse cursor.(At present it starts midways)


Posted By: mdoubson
Date Posted: 28 May 2009 at 9:30am
It use small cursor size hardcoded height. We can get cursor icon size to catch 16 * 16 or 32 * 32 cursor icon but I am not going to analyze transperent pixels in the bottom of icon. No sense... It's minor

-------------
Mark Doubson, Ph.D.


Posted By: prashant
Date Posted: 28 May 2009 at 9:47am
Agreed with It's minor to implement...
Not agreed that it's no sense..I hope you can understand

Imagine MS applications overriding menu text by tooltips...


Posted By: mdoubson
Date Posted: 28 May 2009 at 9:55am
 
Yes I can imagine it - see
 


-------------
Mark Doubson, Ph.D.


Posted By: prashant
Date Posted: 29 May 2009 at 12:34am
MS Word Tooltip:-



MS-Excel Tooltip:-



MS-Outlook Tooltip:-



and the list goes on....





Posted By: mdoubson
Date Posted: 29 May 2009 at 2:50pm
What do you want to proof? I know it - I just show you example when MS not follows this rule

-------------
Mark Doubson, Ph.D.


Posted By: mdoubson
Date Posted: 31 May 2009 at 7:32pm
OK - I will use this code - it give tooltip exactly on the top of mouse cursor - you can put it into your source 

CPoint pointMouse;

GetCursorPos(&pointMouse);

int ht = rcTip.Height();

rcTip.bottom = pointMouse.y;

rcTip.top = rcTip.bottom - ht;



-------------
Mark Doubson, Ph.D.


Posted By: prashant
Date Posted: 01 June 2009 at 3:21am
Mark,

I dont want to prove anything (I am just comparing different apps and trying to extract best of it not worst ), I agree MS behaving differently in different applications. "Be Smart, Choose the best one."
If tooltip covers text then both are of no use. Please try to patch above mentioned code in CJ 13.1.1

[Working in windows explorer tree view is as mentioned by you and the only reason behind it is:
MS don't want to hide bottom items in the tree view by tooltip, so that user can view more information on view rather than hiding the bottom items]

Thanks.




Posted By: mdoubson
Date Posted: 03 June 2009 at 10:52pm
2-modes solution was already SVNed - absolutely nothing to discuss.
So minor thing any juniour developer with little help from Google can fix it in 10 minutes and send use this simple code instead.


-------------
Mark Doubson, Ph.D.



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