Пример #1
0
/**
 * Resizes the button to specified width and height values according to display pixels!
 *
 *
 * @param ch
 * @param width   Width measured in display pixels!
 * @param height  Height measured in display pixels!
 */
void
KeyboardControl::resize_button(TCHAR ch,
                               UPixelScalar width, UPixelScalar height)
{
  ButtonWindow *kb = get_button(ch);
  if (kb)
    kb->resize(width, height);
}
Пример #2
0
/**
 * Resizes the button to specified width and height values according to display pixels!
 *
 *
 * @param ch
 * @param width   Width measured in display pixels!
 * @param height  Height measured in display pixels!
 */
void
KeyboardControl::resize_button(TCHAR ch,
                               unsigned int width, unsigned int height)
{
  ButtonWindow *kb = get_button(ch);
  if (kb)
    kb->resize(width, height);
}