none
Change the font size in Emulator RRS feed

  • Question

  •  

    Hi,

    I made some changes in the HomeScreen Plugin (supplied with the SDK) to display some text on the screen.

    Following is the code I am using to display the Text.

     

    WCHAR wszDetail[128];

    wcscpy(wszDetail, L"Total : Physical ");

    wcscat(wszDetail, L"\n");

    wcscat(wszDetail, L"Avail : Physical ");

    wcscat(wszDetail, L"\n");

    wcscat(wszDetail, L"Total : Virtual ");

    wcscat(wszDetail, L"\n");

    wcscat(wszDetail, L"Avail : Virtual ");

    wcscat(wszDetail, L"\n");

     

     

    DrawText(hdc, wszDetail, -1, const_cast<RECT*>(&(ppe->p.paint.rcDraw)), DT_LEFT | DT_NOPREFIX | DT_WORDBREAK);

     

    Since it is a multiline display I wanted to reduce the font size.

    I tried making changes in the full.home.xml file where I have added the plugin reference but it didnt work.

    <plugin clsid="{55EE36E7-7CC3-47e8-85E2-1D8644280E7A}" name="Memory Usage" height="40">

    <format font-size="8"/>

    </plugin>

     

    Even when I change the global font size (within <default> tag), it doesn't reduce the font size of my plugin's display.

     

    Is there a way to change the font size for the display of a specific plugin ?

     

    Note : I am doing this on the Emulator and not on the real device.

     

    Please let me know.

    Wednesday, October 24, 2007 12:29 PM

Answers

  • Hi
     uchouax wrote:

    Is there a way to change the font size for the display of a specific plugin ?



    Probably this link will help you

    Reagrds
    Hammadi
    Monday, October 29, 2007 11:01 AM