write text

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

Parents Reply Children
  • 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 ?
  • did you understood my problem?
  • Hi Niku-
    I believe you want to detect a touch event at an arbitrary location. GUIX manages touch events via Widgets. I suggest you read over the GUIX User's Manual on Widgets and Events. The Pen_Up and Pen_Down events are probably what you need while using a custom widget to define the window for capturing the touch events.

    Warren