@Override Rectangle computeTrimInPixels (int x, int y, int width, int height) { Rectangle trim = super.computeTrimInPixels (x, y, width, height); int bits = OS.GetWindowLong (handle, OS.GWL_STYLE); if ((bits & OS.CCS_NODIVIDER) == 0) trim.height += 2; return trim; }
@Override Rectangle computeTrimInPixels (int x, int y, int width, int height) { if (isCalendar ()) { return super.computeTrimInPixels (x, y, width, height); Rectangle trim = super.computeTrimInPixels (x, y, width, height); int xborder = 0, yborder = 0; if (OS.GTK3) {
@Override Rectangle computeTrimInPixels (int x, int y, int width, int height) { if (isCalendar ()) { return super.computeTrimInPixels (x, y, width, height); Rectangle trim = super.computeTrimInPixels (x, y, width, height); int xborder = 0, yborder = 0; if (OS.GTK3) {
@Override Rectangle computeTrimInPixels (int x, int y, int width, int height) { if (isCalendar ()) { return super.computeTrimInPixels (x, y, width, height); Rectangle trim = super.computeTrimInPixels (x, y, width, height); int xborder = 0, yborder = 0; if (OS.GTK3) {
@Override Rectangle computeTrimInPixels (int x, int y, int width, int height) { checkWidget (); Rectangle trim = super.computeTrimInPixels (x, y, width, height); int /*long*/ newFont, oldFont = 0; int /*long*/ hDC = OS.GetDC (handle); newFont = OS.SendMessage (handle, OS.WM_GETFONT, 0, 0); if (newFont != 0) oldFont = OS.SelectObject (hDC, newFont); TEXTMETRIC tm = OS.IsUnicode ? (TEXTMETRIC) new TEXTMETRICW () : new TEXTMETRICA (); OS.GetTextMetrics (hDC, tm); if (newFont != 0) OS.SelectObject (hDC, oldFont); OS.ReleaseDC (handle, hDC); int offsetY = OS.COMCTL32_MAJOR >= 6 && OS.IsAppThemed () ? 0 : 1; trim.x -= CLIENT_INSET; trim.y -= tm.tmHeight + offsetY; trim.width += CLIENT_INSET * 2; trim.height += tm.tmHeight + CLIENT_INSET + offsetY; return trim; }
checkWidget (); int xborder = 0, yborder = 0; Rectangle trim = super.computeTrimInPixels (x, y, width, height); if (OS.GTK3) { GtkBorder tmp = new GtkBorder();
checkWidget (); int xborder = 0, yborder = 0; Rectangle trim = super.computeTrimInPixels (x, y, width, height); if (OS.GTK3) { GtkBorder tmp = new GtkBorder();
checkWidget (); int xborder = 0, yborder = 0; Rectangle trim = super.computeTrimInPixels (x, y, width, height); if (OS.GTK3) { GtkBorder tmp = new GtkBorder();