Question

i want to design sample form for in windows phone 8 like below screen shot:

enter image description here

below code for hello world example

// 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;
}

i tried lots of search about how to create button and textbox and add listener for button using c++ code on marmalade sdk but didn't find any thing any one help me will be greatly appreciated.

Was it helpful?

Solution

You need to use IwUI api. Check the examples which came with marmalade SDK or use the launchpad. There're some nicely commented examples which demonstrate the use of IwUI and if you want native looking controls you can try IwNUI too. The IwNUI module is not yet added for Windows 8 platform due to some bug, but will be added soon.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top