Windows phone 8 使用marmalade sdk 6.3.1在windows phone上创建基本控件

Windows phone 8 使用marmalade sdk 6.3.1在windows phone上创建基本控件,windows-phone-8,marmalade,marmalade-iwui,Windows Phone 8,Marmalade,Marmalade Iwui,我想设计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() {

我想设计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;
}

我在MarmaladeSDK上尝试了很多关于如何使用
c++
code创建按钮和文本框以及为按钮添加监听器的搜索,但没有找到任何东西,任何人都会非常感谢

您需要使用iwuiapi。检查MarmaladeSDK附带的示例或使用launchpad。这里有一些注释很好的示例演示了IwUI的使用,如果您想要具有本地外观的控件,也可以尝试IwNUI。由于某些错误,尚未为Windows 8平台添加IwNUI模块,但将很快添加。

感谢您的回答!你能告诉我如何用果酱在WindowsPhone8中创建textbox吗?你是说TextLabel?我建议您查看IwUIRSS示例或IWUI厨房水槽示例。我可以在这里简单地解释一下。您需要有一个CIwUILabel并将其分配给IwUIViewCOntroller。或者您应该有一个CIwUIElement作为父项,并将所有CIwUILabel分配为子项,然后将父项分配给ViewCOntroller。有关更多详细信息,请查看examples.CIwUILabel是否在windows phone 8上受支持?我想从用户那里获取输入信息,你能给我一些提示吗?Windows Phone 8支持iUI,这是文档中至少提到的。如果你想从用户那里获取输入,你可能想使用CIwUITextField,而不是CIwUILabel。+1谢谢你的指导:)你能告诉我如何从CIwUITextField获取文本吗?