| 214 | } |
| 215 | |
| 216 | void CallTip::PaintCT(Surface *surfaceWindow) { |
| 217 | if (val.empty()) |
| 218 | return; |
| 219 | PRectangle rcClientPos = wCallTip.GetClientPosition(); |
| 220 | PRectangle rcClientSize(0, 0, rcClientPos.right - rcClientPos.left, |
| 221 | rcClientPos.bottom - rcClientPos.top); |
| 222 | PRectangle rcClient(1, 1, rcClientSize.right - 1, rcClientSize.bottom - 1); |
| 223 | |
| 224 | surfaceWindow->FillRectangle(rcClient, colourBG); |
| 225 | |
| 226 | offsetMain = insetX; // initial alignment assuming no arrows |
| 227 | PaintContents(surfaceWindow, true); |
| 228 | |
| 229 | #ifndef __APPLE__ |
| 230 | // OSX doesn't put borders on "help tags" |
| 231 | // Draw a raised border around the edges of the window |
| 232 | surfaceWindow->MoveTo(0, rcClientSize.bottom - 1); |
| 233 | surfaceWindow->PenColour(colourShade); |
| 234 | surfaceWindow->LineTo(rcClientSize.right - 1, rcClientSize.bottom - 1); |
| 235 | surfaceWindow->LineTo(rcClientSize.right - 1, 0); |
| 236 | surfaceWindow->PenColour(colourLight); |
| 237 | surfaceWindow->LineTo(0, 0); |
| 238 | surfaceWindow->LineTo(0, rcClientSize.bottom - 1); |
| 239 | #endif |
| 240 | } |
| 241 | |
| 242 | void CallTip::MouseClick(Point pt) { |
| 243 | clickPlace = 0; |
no test coverage detected