write text

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

  • In reply to niku:

    can you give me reference code?
  • In reply to niku:

    Hi Niku-
    I suggest you look over these examples for "GUIX Hello World". They should provide code examples for your target board. Try them out and then post any questions you might have.

    Warren
  • In reply to WarrenM:

    okay warren...
    But..... Tell me one thing if i not used any prompt,widget etc in guix .... so how i implement touch function for only particular position my touch function is work?
  • In reply to niku:

    Hi Niku-
    Let me understand. You want to implement a touch functions without using GUIX?

    Warren
  • In reply to WarrenM:

    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 ?
  • In reply to niku:

    did you understood my problem?
  • In reply to niku:

    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