|

楼主 |
发表于 2017-3-16 11:32:19
|
显示全部楼层
回 eric2013 的帖子
eric2013:仅看你这部分提供的代码,可以删除的,另外就是确认下点击删除后,是否进入到此按钮的回调函数里面了。 (2017-03-16 11:08)  static WM_HWIN _CreateButton(WM_HWIN hParent, const char* pText, int Id, int x, int y, int w, int h, unsigned TextId)
{
WM_HWIN hButton;
hButton = BUTTON_CreateEx(x, y, w, h, hParent, WM_CF_SHOW, 0, Id);
BUTTON_SetText (hButton, pText);
// BUTTON_SetFont (hButton, FRAME_BUTTON_FONT);
BUTTON_SetBkColor (hButton, 0, FRAME_BUTTON_BKCOLOR0);
BUTTON_SetBkColor (hButton, 1, FRAME_BUTTON_BKCOLOR1);
BUTTON_SetBkColor (hButton, 2, FRAME_BUTTON_BKCOLOR2);
BUTTON_SetTextColor (hButton, 0, FRAME_BUTTON_COLOR0);
BUTTON_SetTextColor (hButton, 1, FRAME_BUTTON_COLOR1);
BUTTON_SetTextColor (hButton, 2, FRAME_BUTTON_COLOR0);
WIDGET_SetEffect (hButton, FRAME_BUTTON_EFFECT);
return hButton;
} |
|