Пример #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);
 }
Пример #2
0
 @Override
 void createWidget(int index) {
   super.createWidget(index);
   layout.setFont(getFont());
   text = "";
   initAccessible();
 }
Пример #3
0
 @Override
 void setFontDescription(long /*int*/ font) {
   super.setFontDescription(font);
   layout.setFont(Font.gtk_new(display, font));
 }