Stellaris图形库中的RectangularButton控件怎么让文字显示居中??



Stellaris图形库中的RectangularButton控件怎么让文字显示居中??

  • 楼主按键上的文字不能居中吗?有一个我用过的这个空间的变量定义,可以居中的,供你参考:

    RectangularButton(g_sPushBtnup, &g_sBackground, 0, &g_sPushBtndown,
    &g_sKitronix320x240x16_SSD2119, 220, 40, 90, 24,
    ( PB_STYLE_TEXT | PB_STYLE_IMG | PB_STYLE_RELEASE_NOTIFY | PB_STYLE_AUTO_REPEAT),
    0, 0, 0, ClrSilver, &g_sFontCmss18b, "UP",
    g_pucRedButton_90x24_Up, g_pucRedButton_90x24_Down, 0, 50,
    OnButtonPressup);

    文字“UP”是居中显示的