write text

How i can write text on display through coding in s7g2 board ?

Parents Reply
  • VOID main_window_draw(GX_WINDOW *widget)
    {
    SSP_PARAMETER_NOT_USED(widget);
    gx_context_brush_define(GX_COLOR_ID_SELECTED_TEXT, GX_COLOR_ID_SELECTED_TEXT,
    GX_BRUSH_ALIAS | GX_BRUSH_SOLID_FILL);
    gx_context_brush_width_set(1);

    gx_context_font_set(GX_FONT_ID_PROMPT);
    gx_canvas_text_draw(10, 10, "Hello", 5);
    }

    i made this function oky and hello string is properly display but now i want to that particular string(e.g hello) give selection means while i touch hello then hello is select so how i can implement touch functionality at particular position ?
Children