我想在 windows phone 8 中设计示例表单,如下图所示:
下面是 hello world 示例的代码
// Include header files for S3E (core system) and IwGx (rendering) modules
#include "s3e.h"
#include "IwGx.h"
// Standard C-style entry point. This can take args if required.
int main()
{
// Initialise the IwGx drawing module
IwGxInit();
// Set the background colour to (opaque) blue
IwGxSetColClear(0, 0, 0xff, 0xff);
// Loop forever, until the user or the OS performs some action to quit the app
while(!s3eDeviceCheckQuitRequest()
&& !(s3eKeyboardGetState(s3eKeyEsc) & S3E_KEY_STATE_DOWN)
&& !(s3eKeyboardGetState(s3eKeyAbsBSK) & S3E_KEY_STATE_DOWN)
)
{
// Clear the surface
IwGxClear();
// Use the built-in font to display a string at coordinate (120, 150)
IwGxPrintString(120, 150, "Hello, World!");
// Standard EGL-style flush of drawing to the surface
IwGxFlush();
// Standard EGL-style flipping of double-buffers
IwGxSwapBuffers();
// Sleep for 0ms to allow the OS to process events etc.
s3eDeviceYield(0);
}
// Shut down the IwGx drawing module
IwGxTerminate();
// Return
return 0;
}
我尝试了很多关于如何创建按钮和文本框并使用c++
marmalade sdk 上的代码为按钮添加侦听器的搜索,但没有找到任何帮助我的人将不胜感激。