dreambutterfly 发表于 2015-6-16 15:49

Stellaris图形库中画布控件的使用

下面代码我已经声明了g_sBackground,g_sPushBtn,但是还是报错Undifined,
extern const tDisplay g_skitronix320x240x16_SSD2119;
extern tCanvasWidget g_sBackground;
extern tCanvasWidget g_sHeading;
extern tCanvasWidget g_sHello;
extern tCanvasWidget g_sPushBtn;

void OnButtonPress(tWidget*pWidget);

Canvas(g_sHeading,&g_sBackground,0,&g_sPushBtn,&g_sKitronix320x240x16_SSD2119,0,0,320,23,
(CANVAS_STYLE_FILL|CANVAS_STYLE_OUTLINE|CANVAS_STYLE_TEXT),
ClrDarkBlue,ClrWhite,ClrWhite,&g_sFontCm20,"hello world",0,0);

zxcvbnm751120 发表于 2024-10-14 20:55

页: [1]
查看完整版本: Stellaris图形库中画布控件的使用