Beispiel #1
0
 LRESULT WM_SETFONT(int /*long*/ wParam, int /*long*/ lParam) {
   if (OS.COMCTL32_MAJOR < 6) {
     layout.setFont(Font.win32_new(display, wParam));
   }
   if (lParam != 0) OS.InvalidateRect(handle, null, true);
   return super.WM_SETFONT(font = wParam, lParam);
 }
 @Override
 void createWidget(int index) {
   super.createWidget(index);
   layout.setFont(getFont());
   text = "";
   initAccessible();
 }
 @Override
 void setFontDescription(long /*int*/ font) {
   super.setFontDescription(font);
   layout.setFont(Font.gtk_new(display, font));
 }