Alexandre Wilhelm
4ac63950ad
Fixed: toolTip does not work on a external window
...
Previously, the toolTip created for an external window where shown on the primary platform window. We now display it on the desired platformWindow.
2015-09-22 15:58:53 -07:00
Antoine Mercadal
48276f989f
Fixed: - (CGSize)sizeWithFont:(CPFont)aFont inWidth:(float)aWidth adjust +1 to the computed size
...
The width computing of a string is always a little random, and that led to truncated labels. This patch adds
a pixel in width in order to fix any rounding errors.
2014-09-04 17:35:03 -07:00
Antoine Mercadal
b92214461e
FIXED: Some tooltips was truncated
...
This patch adds a small size adjustment when we compute the size of the
tooltip. It seems to fix all truncated tooltips problem.
2014-08-28 19:02:22 -07:00
Antoine Mercadal
3f4ba87079
FIXED: Tooltip content alignement was mistakely set to be justified
...
This patch ensure the tooltip content is left aligned correctly
2014-08-28 18:30:55 -07:00
Antoine Mercadal
59a97272bb
FIXED: Crash due to tooltip trying to be attached to a window that is gone
...
Previously, _CPToolTip was not testing if the view and so parentWindow was still here. During the timer, it might be gone, which would cause crash. This patch ensure the window is still there before showing the tooltip
2014-05-07 10:52:57 -07:00
Alexandre Wilhelm
de4bc67159
Fixed: the way to add the tooltip's window is wrong
...
Previously when adding a tooltip, we added it to the platformWindow.
Now we add id to the window of the targeted view.
Fixed #2110
2014-04-30 13:24:18 -07:00
Alexandre Wilhelm
af37616e48
Fixed: CPToolTip still shown when closing window asynchronous …
...
When closing a windows asynchronous, the tooltip of views of the window could stay shown.
Fixed #2110
2014-04-29 16:43:32 -07:00
Antoine Mercadal
a38d6c11b4
Fixed: Tooltips always showing in primary platform window
...
Previously, the tooltip of a control was always shown on the primary platform window. This fixes sets the tooltip window's platform view to [[targetView window] platformWindow].
2013-04-26 14:56:20 -07:00
Aparajita Fishman
69bda9427a
Fixed: some window subclasses should not be constrained to the usable screen content
...
Previously, all window subclasses were constrained to the usable screen content. Unfortunately that included the menu bar window, which ended up appearing below itself!
This commit introduces an ivar that indicates whether instances of the window subclass should be constrained or not.
2013-03-12 15:00:26 -04:00
Antoine Mercadal
fcad7a7fe4
Fix _CPToolTip.j never properly imported
2013-01-23 10:45:42 -08:00
Aparajita Fishman
4f377bcebe
Objj2 compiler fixes
...
Compiled all files individually:
- Added missing imports.
- Added @class/@global declarations to break circular dependencies.
- Misc. code cleanup.
Conflicts:
AppKit/CPWindow/_CPWindow.j
AppKit/Platform/DOM/CPPlatformWindow+DOM.j
2013-01-23 15:48:55 +07:00
Aparajita Fishman
7c831fa19d
capp_lint flags deprecated CPPoint/Rect/Size types/functions
...
- Changed to corresponding CG types/functions in all files
- Fixed some demo app bugs
2013-01-19 16:51:56 +07:00
Antoine Mercadal
19f668f4f6
use the [CPPlatformWindow primaryPlatformWindow] to position the tooltips.
2013-01-08 18:09:07 -08:00
Antoine Mercadal
23adbd4407
Improve tooltips API and avoid some sticky tooltips
2012-10-18 14:22:47 -07:00
Antoine Mercadal
8fdf78cf67
Move the tooltip code into the CPView code (remove category). Fix problem with tooltips not working when using deploy
2012-04-24 17:57:05 -07:00
Antoine Mercadal
ddc5994869
tooltips are now themable.
2011-11-28 12:05:43 +01:00
Antoine Mercadal
5a7c38d6eb
Fix Firefox problem. close #1271
...
This patch fix the blink problem with FF, by changing the positionning of tooltips, which by the way reflects more the Cocoa behaviour.
2011-05-18 19:30:16 +02:00
Alexander Ljungberg
23cc507b12
Refs #1264 . Make tooltip delay a constant and reduce it to 1.0 second to match Cocoa a little more closely.
...
Perhaps we should implement something like [[CPToolTipManager sharedToolTipManager] setInitialToolTipDelay:X] for completeness.
2011-05-15 19:01:26 -04:00
Alexander Ljungberg
e9cfc806b6
Refs #1264 . Size to fit small tooltips to remove empty whitespace on right side.
2011-05-15 18:58:01 -04:00
Alexander Ljungberg
5994c48d5f
Refs #1264 . Fix accidental global, cleanup.
2011-05-15 18:36:21 -04:00
Antoine Mercadal
fe53f2503b
let a fancy padding in case of placement forcing due to a lack of space
2011-05-15 22:36:33 +02:00
Antoine Mercadal
9058857403
style
2011-05-15 22:17:11 +02:00
Antoine Mercadal
b8f46565ef
make CPToolTip a framework private class
2011-05-15 22:17:11 +02:00
Alexander Ljungberg
1c0f679f50
Refs #1245 . Fixed: setToolTip: belongs in CPView, not CPControl.
2011-05-11 21:36:49 -04:00
Alexander Ljungberg
345d48e224
Refs #1245 . Make CPToolTip and CPAttachedWindow internal since they're not part of the Cocoa API. Refactored some code from CPControl to CPToolTip.
2011-05-11 20:35:13 -04:00